....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,还请高手多多指教
....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; // 直接输出异常描述...
....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): XSServer->connect(NULL, true) ...
....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): XSServer->connect(NULL, true) #2 /us...
... sdk/php/lib/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->...
... sdk/php/lib/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->...
...ies"]=> array(0) { } } } ["_sock":protected]=> resource(39) of type (stream) ["_conn":protected]=> string(17) "192.168.1.78:8383" ["_flag":protected]=> int(0) ["_project":protected]=> string(27) "xs_skdata_sk_tryreport_list" ["_sendBuffer":protected]=...