finish port
[m6w6/ext-pq] / tests / async003.phpt
index 20b08b907b7f91582565fe2ac6c3e8acf16e9459..9eb44df170a6bf5454351ad8725bb8796218e54a 100644 (file)
@@ -16,7 +16,7 @@ do {
        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();
                }
        }
@@ -26,7 +26,7 @@ do {
 DONE
 --EXPECTF--
 Test
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
   ["status"]=>
   int(2)
   ["statusMessage"]=>
@@ -38,11 +38,13 @@ object(pq\Result)#%d (7) {
   ["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"]=>
@@ -54,8 +56,10 @@ object(pq\Result)#%d (7) {
   ["numCols"]=>
   int(3)
   ["affectedRows"]=>
-  int(1)
+  int(%d)
   ["fetchType"]=>
   int(0)
+  ["autoConvert"]=>
+  int(65535)
 }
 DONE