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