...otected function check(){ if ($this->_sock === null) { throw new XSException('No server connection'); } if ($this->_flag & self::BROKEN) { throw new XSException('Broken server connection'); }} 检测服务端的连接情况 close() 方法 public void close(boo...
... 是生成好的代码,我测试的时候报的这个错。 错误:[XSException] sdk/php/lib/XS.php(2008): Permission denied(C#13) 我把sdk这个目录复制到了我的web站点下,给了777的权限还报这个错误。求解。 [/quote] 这是 fsockopen 返回的错误,无权限...
...= pg_query($this->link, $query); if ($res === false) { throw new XSException('PgSQL ERROR: ' . pg_last_error($this->link)); } $ret = array(); while ($tmp = pg_fetch_assoc($res)) { $ret[] = $tmp; } pg_free_result($res); return $ret;} 执行 SQL 语句查询
... $res = $this->obj->query($sql); if ($res === false) { throw new XSException('MySQL ERROR(#' . $this->obj->error . '): ' . $this->obj->errno); } if (!is_object($res)) { $ret = $res; } else { $ret = array(); while ($tmp = $res->fetch_assoc()) { $ret[...
... => 2), XS_CMD_OK_DB_REBUILD); $this->_rebuild = false; } catch (XSException $e) { if ($e->getCode() !== XS_CMD_ERR_WRONGPLACE) { throw $e; } } return $this;} 中止索引重建 丢弃重建临时库的所有数据, 恢复成当前搜索库, 主要用于...
...m['pass']}"; if (!($this->link = @pg_connect($dsn))) { throw new XSException('Error connecting to PGSQL database:' . $param['dbname'] . '.'); pg_set_error_verbosity($this->link, PGSQL_ERRORS_DEFAULT); pg_query('SET standard_conforming_strings=off'); }}
...il]# ./Logger.php --flush /export/home/www/xunsearch/data/products -c gbk [XSException] ../lib/XS.php(819): Missing field of type ID #0 ../lib/XS.php(522): XSFieldScheme->checkValid(true) #1 ../lib/XS.php(296): XS->loadIniFile('/export/home/ww...') #2 Logger.php(94): XS->__construct('/export/home/ww...
...sqlite_query($this->link, $sql); if ($res === false) { throw new XSException('SQLITE ERROR: ' . sqlite_error_string($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp = sqlite_fetch_array($res, SQLITE_ASSOC)) { ...
... $msg .= ' property: ' . get_class($this) . '::$' . $name; throw new XSException($msg);} 魔术方法 __get 取得模拟属性的值, 内部实际调用 getXxx 方法的返回值
...($type2)) . 'DataSource'; if (!class_exists($class)) { throw new XSException("Undefined data source type: `$type2'"); } return new $class($type, $arg);} 取得数据源对象实例