... 默认为字符串长度 源码: sdk/php/lib/XSServer.class.php#L368 (显示) protected function write($buf, $len = 0){ // quick return for empty buf $buf = strval($buf); if ($len == 0 && ($len = $size = strlen($buf)) == 0) { return true; } // loop to send data $this->...
...{return} string 源码: sdk/php/util/XSDataSource.class.php#L913 (显示) protected function makeDsn($param){ $dsn = "pgsql:host={$param['host']};"; $dsn .= isset($param['port']) ? "port={$param['port']};" : ''; $dsn .= "dbname={$param['dbname']};client_encoding=utf-8"; return ...
... XSIndex 索引操作对象 源码: sdk/php/lib/XS.class.php#L406 (显示) public function getIndex(){ if ($this->_index === null) { $adds = array(); $conn = isset($this->_config['server.index']) ? $this->_config['server.index'] : 8383; if (($pos = strpos($conn, ';')...
不知你有没有注意到 configure 的结果里,总是显示 checking if zts is enabled... no 问题应该是在这儿 我这儿的FREEBSD,LINUX都是正常的,PHP 4.4.X和PHP5.2.X都测试过~ 查看一下 /usr/local/php/include/php/main/php_config.php 里面是否有 #define ZTS 1 ...
... 最大长度为 255字节 源码: sdk/php/lib/XSServer.class.php#L62 (显示) public function __construct($cmd, $arg1 = 0, $arg2 = 0, $buf = '', $buf1 = ''){ if (is_array($cmd)) { foreach ($cmd as $key => $value) { if ($key === 'arg' || property_exists($this, $key)) { ...
...{return} string 源码: sdk/php/util/XSDataSource.class.php#L877 (显示) protected function makeDsn($param){ $dsn = 'mysql:host=' . (isset($param['host']) ? $param['host'] : 'localhost'); if (isset($param['port']) && $param['port'] !== 3306) { $dsn .= ';port=' . $param['port'...
...的词组成的数组 源码: sdk/php/lib/XSTokenizer.class.php#L33 (显示) public function getTokens($value, XSDocument $doc = null); 执行分词并返回词列表
...0 起支持字符集 源码: sdk/php/util/XSDataSource.class.php#L534 (显示) public function setUtf8(){ if (version_compare(mysql_get_server_info($this->link), '4.1.0', '>=')) { return @mysql_query("SET NAMES utf8", $this->link); } return false;} 将输出字符集设置...
...d void getDataList() 源码: sdk/php/util/XSDataSource.class.php#L392 (显示) protected function getDataList(){ if (($item = fgetcsv($this->fd, 0, $this->delim)) === false) { if ($this->inCli) { echo "INFO: reach end of file or error occured, total lines: " . $this->line ....
...象以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L444 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $t...