close() 方法 public void close() 源码: sdk/php/util/XSDataSource.class.php#L768 (显示) public function close(){ if ($this->obj) { $this->obj->close(); $this->obj = null; }} 关闭数据库
... $this->_scheme = $this->_bindScheme; if ($this->_search !== null) { $this->_search->markResetScheme(true); } }} 还原字段方案为项目绑定方案
...ass.php#L438 (显示) protected function check(){ if ($this->_sock === null) { throw new XSException('No server connection'); } if ($this->_flag & self::BROKEN) { throw new XSException('Broken server connection'); }} 检测服务端的连接情况
... $fs->checkValid(true); $this->_scheme = $fs; if ($this->_search !== null) { $this->_search->markResetScheme(); }} 设置当前在用的字段方案
...ss.php#L309 (显示) public function offsetSet($name, $value){ if (!is_null($name)) { $this->__set(strval($name), $value); }} ArrayAccess 接口, 设置字段值, 勿直接调用
...明细 __construct() 方法 public void __construct(string $conn=NULL, XS $xs=NULL) $conn string 服务端连接参数 $xs XS 需要捆绑的 xs 对象 源码: sdk/php/lib/XSServer.class.php#L143 (显示) public function __construct($conn = null, $xs = null){ $this->...
...hp#L467 (显示) public function getScwsServer(){ if ($this->_scws === null) { $conn = isset($this->_config['server.search']) ? $this->_config['server.search'] : 8384; $this->_scws = new XSServer($conn, $this); } return $this->_scws;} 创建 scws 分词连接
...hp on line 4 Warning: scws_set_dict() expects parameter 1 to be resource, null given in E:\soft\PHPnow-1.5.6\htdocs\phpstudy\fenci.php on line 4 Notice: Undefined variable: sh in E:\soft\PHPnow-1.5.6\htdocs\phpstudy\fenci.php on line 5 Warning: scws_set_rule() expects parameter 1 to be resource, ...
...示) public static function convertOut($buf){ if (self::$charset !== null) { return XS::convert($buf, self::$charset, 'UTF-8'); } return $buf;} 把 UTF-8 字符串转换为用户编码
...ib/XS.php(2205): stream_set_blocking() expects parameter 1 to be resource, null given(2) #0 [internal function]: xs_error_handler(2, 'stream_set_bloc...', '/home/wwwroot/x...', 2205, Array) #1 sdk/php/lib/XS.php(2205): stream_set_blocking(NULL, true) #2 sdk/php/lib/XS.php(2025): XSServer->connect() ...