install php-pear
[m6w6/ext-pq] / tests / async006.phpt
index 81ee66e40d013dad5d7b6cd67a3c7ae3c8a3b252..775c880a43d23855d517afae49f863db57cc6839 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 async unbuffered exec
 --SKIPIF--
-<?php include "_skipif.inc"; ?>
+<?php
+include "_skipif.inc";
+defined("pq\\Result::SINGLE_TUPLE") or die("skip need pq\\Result::SINGLE_TUPLE");
+?>
 --FILE--
 <?php
 echo "Test\n";
@@ -27,9 +30,11 @@ do {
 DONE
 --EXPECTF--
 Test
-object(pq\Result)#%d (6) {
+object(pq\Result)#%d (8) {
   ["status"]=>
   int(9)
+  ["statusMessage"]=>
+  string(12) "SINGLE_TUPLE"
   ["errorMessage"]=>
   string(0) ""
   ["numRows"]=>
@@ -40,10 +45,14 @@ object(pq\Result)#%d (6) {
   int(0)
   ["fetchType"]=>
   int(0)
+  ["autoConvert"]=>
+  int(65535)
 }
-object(pq\Result)#%d (6) {
+object(pq\Result)#%d (8) {
   ["status"]=>
   int(9)
+  ["statusMessage"]=>
+  string(12) "SINGLE_TUPLE"
   ["errorMessage"]=>
   string(0) ""
   ["numRows"]=>
@@ -54,10 +63,14 @@ object(pq\Result)#%d (6) {
   int(0)
   ["fetchType"]=>
   int(0)
+  ["autoConvert"]=>
+  int(65535)
 }
-object(pq\Result)#%d (6) {
+object(pq\Result)#%d (8) {
   ["status"]=>
   int(9)
+  ["statusMessage"]=>
+  string(12) "SINGLE_TUPLE"
   ["errorMessage"]=>
   string(0) ""
   ["numRows"]=>
@@ -68,10 +81,14 @@ object(pq\Result)#%d (6) {
   int(0)
   ["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"]=>
@@ -82,5 +99,7 @@ object(pq\Result)#%d (6) {
   int(3)
   ["fetchType"]=>
   int(0)
+  ["autoConvert"]=>
+  int(65535)
 }
-DONE
\ No newline at end of file
+DONE