Merge pull request #33 from m6w6/fix-19
[m6w6/ext-pq] / tests / async001.phpt
index 9fa2eb70a34aba0df7c85b734051e5543a0795cf..7272272ed54ab5a891a8350393b0031280d5dbc1 100644 (file)
@@ -8,7 +8,7 @@ echo "Test\n";
 
 include "_setup.inc";
 
-$c = new pq\Connection(PQ_DSN, false);
+$c = new pq\Connection(PQ_DSN, true);
 $s = array($c->status);
 echo "W";
 $w = array($c->socket);
@@ -38,11 +38,12 @@ while (true) {
                        break 2;
        }
 }
+$s[] = $c->status;
 printf("\n%s\n", implode(",", $s));
 ?>
 DONE
 --EXPECTREGEX--
 Test
 (WP(RP)*)+S
-3(,\d+),+4
+2(,\d)*,0
 DONE