create test db
[m6w6/ext-pq] / tests / res001.phpt
index 89e0512655e4d30f0105938c0a355decca0c1196..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;
 }
@@ -49,7 +54,11 @@ 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 (7) {
+
+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) {
   ["status"]=>
   NULL
   ["statusMessage"]=>
@@ -64,8 +73,10 @@ object(pq\Result)#%d (7) {
   int(0)
   ["fetchType"]=>
   int(0)
+  ["autoConvert"]=>
+  int(65535)
 }
-array(8) {
+array(9) {
   ["dummy"]=>
   int(2)
   ["status"]=>
@@ -82,5 +93,7 @@ array(8) {
   int(0)
   ["fetchType"]=>
   int(0)
+  ["autoConvert"]=>
+  int(65535)
 }
 Done