fix package.xml
[m6w6/ext-pq] / tests / res001.phpt
index 6cf307af220daf87886c5536c642e6e739e6b4b3..b2a36670a8830dded2914385b40c78e0f4dac90e 100644 (file)
@@ -10,6 +10,11 @@ echo "Test\n";
 
 include "_setup.inc";
 
+set_error_handler(function($code, $error, $file, $line) {
+       printf("\nWarning: %s in %s on line %d\n", $error, $file, $line);
+       return true;
+}, E_RECOVERABLE_ERROR);
+
 class r extends pq\Result {
        public $dummy = 2;
 }
@@ -53,13 +58,19 @@ Warning: pq\Result not initialized in %s on line %d
 Warning: pq\Result not initialized in %s on line %d
 
 Warning: pq\Result not initialized in %s on line %d
-object(pq\Result)#%d (8) {
+
+Warning: pq\Result not initialized in %s on line %d
+
+Warning: pq\Result not initialized in %s on line %d
+object(pq\Result)#%d (9) {
   ["status"]=>
   NULL
   ["statusMessage"]=>
   NULL
   ["errorMessage"]=>
   NULL
+  ["diag"]=>
+  NULL
   ["numRows"]=>
   int(0)
   ["numCols"]=>
@@ -69,9 +80,9 @@ object(pq\Result)#%d (8) {
   ["fetchType"]=>
   int(0)
   ["autoConvert"]=>
-  int(0)
+  int(65535)
 }
-array(9) {
+array(10) {
   ["dummy"]=>
   int(2)
   ["status"]=>
@@ -80,6 +91,8 @@ array(9) {
   NULL
   ["errorMessage"]=>
   NULL
+  ["diag"]=>
+  NULL
   ["numRows"]=>
   int(0)
   ["numCols"]=>
@@ -89,6 +102,6 @@ array(9) {
   ["fetchType"]=>
   int(0)
   ["autoConvert"]=>
-  int(0)
+  int(65535)
 }
 Done