create test db
[m6w6/ext-pq] / tests / res001.phpt
index 6cf307af220daf87886c5536c642e6e739e6b4b3..d42524a466c3bfc1318792d41ebba3c785facbb3 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;
 }
@@ -69,7 +74,7 @@ object(pq\Result)#%d (8) {
   ["fetchType"]=>
   int(0)
   ["autoConvert"]=>
-  int(0)
+  int(65535)
 }
 array(9) {
   ["dummy"]=>
@@ -89,6 +94,6 @@ array(9) {
   ["fetchType"]=>
   int(0)
   ["autoConvert"]=>
-  int(0)
+  int(65535)
 }
 Done