应该是与服务端建立连接没有成功吧
可能是你没有开启监听服务,你先查下 8383或者8384 端口的状态(查询命令: netstat -an |grep 8383),如果没有输出信息,你可以试着对照你本机环境运行下面的命令(先切换到你本机xunsearch的安装目录下): bin/xs-ctl.sh -b local start...
...ption] xunsearch/sdk/php/lib/XS.php(2207): stream_set_blocking(): supplied argument is not a valid stream resource(2) thrown in /home/wwwroot/xunsearch/sdk/php/lib/XS.php on line 504 刚接触xunsearch,还请高手多多指教
.../local/xunsearch/sdk/php/lib/XS.php(2213): stream_set_blocking(): supplied argument is not a valid stream resource(2)[/b] 代码: try { include '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('demo'); $docs = $xs->search->search('15'); } catch (XSException $e) { echo $e; ...
... Fatal error: Uncaught [XSErrorException] ../../..(243): array_sum(): The argument should be an array(2) thrown in D:\web\www[/align]\so\sdk\php\lib\XS.php on line 477
.../local/xunsearch/sdk/php/lib/XS.php(2207): stream_set_blocking(): supplied argument is not a valid stream resource(2) #0 ../usr/local/xunsearch/sdk/php/lib/XS.php(2207): xs_error_handler(2, 'stream_set_bloc...', '/usr/local/xuns...', 2207, Array) #1 ../usr/local/xunsearch/sdk/php/lib/XS.php(2027):...
...: [XSErrorException] lib/XS.php(2210): stream_set_blocking(): supplied argument is not a valid stream resource(2) #0 /usr/local/xunsearch/sdk/php/lib/XS.php(2210): xs_error_handler(2, 'stream_set_bloc...', '/usr/local/xuns...', 2210, Array) #1 /usr/local/xunsearch/sdk/php/lib/XS.php(2030): XSServe...
...el’: /usr/local/php/include/php/Zend/zend_execute.h:67: error: too many arguments to function ‘ts_resource_ex’ /usr/local/php/include/php/Zend/zend_execute.h: In function ‘i_zend_is_true’: /usr/local/php/include/php/Zend/zend_execute.h:107: error: too many arguments to function ‘ts_re...
..._rel': /usr/local/php/include/php/Zend/zend_execute.h:67: error: too many arguments to function 'ts_resource_ex' /usr/local/php/include/php/Zend/zend_execute.h: In function 'i_zend_is_true': /usr/local/php/include/php/Zend/zend_execute.h:107: error: too many arguments to function 'ts_resource_ex'...
... checking for dlfcn.h... yes checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc stati...