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 (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
["statusMessage"]=>
["numCols"]=>
int(1)
["affectedRows"]=>
- int(1)
+ int(%d)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(65535)
}
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
["statusMessage"]=>
["numCols"]=>
int(3)
["affectedRows"]=>
- int(1)
+ int(%d)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(65535)
}
DONE