projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update from docs
[m6w6/ext-pq]
/
tests
/
res001.phpt
diff --git
a/tests/res001.phpt
b/tests/res001.phpt
index 89e0512655e4d30f0105938c0a355decca0c1196..d42524a466c3bfc1318792d41ebba3c785facbb3 100644
(file)
--- a/
tests/res001.phpt
+++ b/
tests/res001.phpt
@@
-10,6
+10,11
@@
echo "Test\n";
include "_setup.inc";
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;
}
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
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"]=>
["status"]=>
NULL
["statusMessage"]=>
@@
-64,8
+73,10
@@
object(pq\Result)#%d (7) {
int(0)
["fetchType"]=>
int(0)
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(65535)
}
}
-array(
8
) {
+array(
9
) {
["dummy"]=>
int(2)
["status"]=>
["dummy"]=>
int(2)
["status"]=>
@@
-82,5
+93,7
@@
array(8) {
int(0)
["fetchType"]=>
int(0)
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(65535)
}
Done
}
Done