getRelPath() 方法 public static string getRelPath(string $file) $file string 需要转换的绝对路径 {return} string 转换后的相对路径 源码: sdk/php/lib/XS.class.php#L79 (显示) public static function getRelPath($file){ $from = getcwd(); $file = real...
是不是你之前重建 没有完成就又重建了?建议用 bin/xs-ctl.sh restart 然后再调用 Indexer.php --clean 清除吧
在win下,开发 XSException::getRelPath() 返回的地址 ../../../../../ 无法确认出错的文件 建议修改成 [php] public static function getRelPath($file) { $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false;...
...行运行脚本一切OK 浏览器访问报错,Fatal error: Uncaught [XSException] ../xunsearch/sdk/php/lib/XS.php(2204): Connection timed out(C#110) thrown in /xunsearch/sdk/php/lib/XS.php on line 2204 或者 Fatal error: Uncaught [XSException] .. nsearch/sdk/php b/XS.php(2204): php_network_...
...otected function check(){ if ($this->_sock === null) { throw new XSException('No server connection'); } if ($this->_flag & self::BROKEN) { throw new XSException('Broken server connection'); }} 检测服务端的连接情况
Uncaught [XSException] ../../xunsearch/sdk/php/lib/XS.php(1970): The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation(S#515) thrown in /usr/local/xunsearch/sdk/php/lib/XS.php on line 1970 又报另外一个错误[hr] Fatal error: Uncaught [...
请问可不可以在下一版中把SDK XS.php 2202行处 [code]throw new XSException($error . '(C#' . $errno . ')'); [/code] 直接修改为相关错误信息呢(或用英文提示错误信息) [code]throw new XSException('由于目标机器积极拒绝,无法连接'. '(C#' . $errno . ')'); [...
...oMap[$name])) { if ($throw === true) { throw new XSException('Not exists field with vno: `' . $name . '\''); } return false; } $name = $this->_vnoMap[$name]; } if (!isset($this->_fields[$name])) { if ($throw === true) { ...
...r, $pass, '', $port); if ($this->obj->connect_error) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!$this->obj->select_db($param['dbname'])) { $this->close(); throw new XSException("Can not switch to database name: '{$param['dbname']}'...
...: 1)); } elseif (!($param = parse_url($this->type))) { throw new XSException('Wrong format of DB connection parameter'); } else { if (isset($param['user'])) { $param['user'] = urldecode($param['user']); } if (isset($param['pass'])) { $param['pa...