X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fres001.phpt;h=d42524a466c3bfc1318792d41ebba3c785facbb3;hp=6cf307af220daf87886c5536c642e6e739e6b4b3;hb=7dda3c7100d4c67bc7d8cc363464078c2e0cc975;hpb=dde388e274286b4200689bf21f061a974e8bd847 diff --git a/tests/res001.phpt b/tests/res001.phpt index 6cf307a..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; } @@ -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