X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fres001.phpt;h=b2a36670a8830dded2914385b40c78e0f4dac90e;hp=89e0512655e4d30f0105938c0a355decca0c1196;hb=c42b1975b4e9de8abac3a1b20985d0851a85865f;hpb=0bce4e6693c3077acc32f833442769cc7de121ef diff --git a/tests/res001.phpt b/tests/res001.phpt index 89e0512..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; } @@ -49,13 +54,23 @@ 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 + +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"]=> @@ -64,8 +79,10 @@ object(pq\Result)#%d (7) { int(0) ["fetchType"]=> int(0) + ["autoConvert"]=> + int(65535) } -array(8) { +array(10) { ["dummy"]=> int(2) ["status"]=> @@ -74,6 +91,8 @@ array(8) { NULL ["errorMessage"]=> NULL + ["diag"]=> + NULL ["numRows"]=> int(0) ["numCols"]=> @@ -82,5 +101,7 @@ array(8) { int(0) ["fetchType"]=> int(0) + ["autoConvert"]=> + int(65535) } Done