fix test
authorMichael Wallner <mike@php.net>
Wed, 17 Sep 2014 07:39:42 +0000 (09:39 +0200)
committerMichael Wallner <mike@php.net>
Wed, 17 Sep 2014 07:39:42 +0000 (09:39 +0200)
tests/res001.phpt

index 6cf307af220daf87886c5536c642e6e739e6b4b3..836a3bd8413b517db390fe1f28374bfe007552c3 100644 (file)
@@ -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;
 }