while ($c->busy) {
$r = array($c->socket);
$w = $e = null;
- if (stream_select($r, $w, $e, null)) {
+ if (stream_select($r, $w, $e, 1, 1000)) {
$c->poll();
}
}
DONE
--EXPECTF--
Test
-object(pq\Result)#%d (6) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
+ ["statusMessage"]=>
+ string(9) "TUPLES_OK"
["errorMessage"]=>
string(0) ""
["numRows"]=>
["numCols"]=>
int(1)
["affectedRows"]=>
- int(1)
+ int(%d)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(65535)
}
-object(pq\Result)#%d (6) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
+ ["statusMessage"]=>
+ string(9) "TUPLES_OK"
["errorMessage"]=>
string(0) ""
["numRows"]=>
["numCols"]=>
int(3)
["affectedRows"]=>
- int(1)
+ int(%d)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(65535)
}
-DONE
\ No newline at end of file
+DONE