X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fres001.phpt;h=d42524a466c3bfc1318792d41ebba3c785facbb3;hp=89e0512655e4d30f0105938c0a355decca0c1196;hb=7dda3c7100d4c67bc7d8cc363464078c2e0cc975;hpb=0bce4e6693c3077acc32f833442769cc7de121ef diff --git a/tests/res001.phpt b/tests/res001.phpt index 89e0512..d42524a 100644 --- a/tests/res001.phpt +++ b/tests/res001.phpt @@ -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