write() 方法 protected void write(string $buf, string $len=0) $buf string 要写入的字符串 $len string 要写入的长度, 默认为字符串长度 源码: sdk/php/lib/XSServer.class.php#L368 (显示) protected function write($buf, $len = 0){ // quick return for...
...见“lseek”的声明 1>f:\mypj\scws\libscws\xdb.c(229): warning C4996: 'write': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details. 1> f:\program files (x86)\microsoft visual studio 11.0\vc\include\io.h(321) : 参见...
...t = intval($conn); } elseif (!strncmp($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this will cause file content be turncated $conn = substr($conn, 7); if (($sock = @fopen($conn, 'wb')) === false) { throw new XSExce...
... instanceof XSCommand) { $cmd = new XSCommand($cmd); } $this->write(strval($cmd));} 往服务器直接发送指令 (无缓存)
...ct() 连接服务端 XSServer read() 读取数据 XSServer write() 写入数据 XSServer 属性明细 _conn 属性 protected $_conn; _flag 属性 protected $_flag; _project 属性 protected $_project; _sendBuffer 属性 protected $_sendBuffer...
...N)) { if (!$ioerr && $this->_sendBuffer !== '') { $this->write($this->_sendBuffer); $this->_sendBuffer = ''; } if (!$ioerr && !($this->_flag & self::FILE)) { $cmd = new XSCommand(XS_CMD_QUIT); fwrite($this->_sock, $cmd); } ...
... } // throw exception $msg = method_exists($this, 'set' . $name) ? 'Write-only' : 'Undefined'; $msg .= ' property: ' . get_class($this) . '::$' . $name; throw new XSException($msg);} 魔术方法 __get 取得模拟属性的值, 内部实际调用 getXxx 方法的返回值
...ON:unknown) #0 /usr/local/xunsearch/sdk/php/lib/XS.php(1851): XSServer->write('????????25?????...') #1 /usr/local/xunsearch/sdk/php/lib/XS.php(1058): XSServer->execCommand(Object(XSCommand), 250) #2 /data/abchosting/trunkey/wwwroot/index.php(110): XSIndex->update(Object(XSDocument)) #3 {main}
...file content image by mmap (read only) */ + int mode; /* xdb_open for write or read-only */ } xdb_st, *xdb_t; /* xdb: open the db, mode = r|w|n */ *** ../../dist/scws-0.0.1-pre/libscws/xdb.c Tue Jun 5 12:19:46 2007 --- xdb.c Sat Jun 9 13:49:40 2007 *************** *** 2,8 **** ...
... fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 write(3, "2012-05-22 19:42:29 ~master[4232"..., 86) = 86 fcntl(3, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 wait4(-1, 0x7fff1367385c, WNOHANG|WSTOPPED, NULL) = 0 rt_sigreturn(0xffffffffffffffff) ...