]> granicus.if.org Git - php/commitdiff
$context is not longer passed by reference, so its modification has no effect
authorDmitry Stogov <dmitry@php.net>
Fri, 22 Jul 2005 07:34:24 +0000 (07:34 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 22 Jul 2005 07:34:24 +0000 (07:34 +0000)
tests/lang/bug25922.phpt

index 1191472f29c2d5061f2c528edb52d4e7547aa334..bb030c9df834cdf5c79bb9647c55c046cd3044c1 100755 (executable)
@@ -6,6 +6,7 @@ error_reporting=2047
 <?php
 function my_error_handler($error, $errmsg='', $errfile='', $errline=0, $errcontext='')
 {
+       echo "$errmsg\n";
        $errcontext = '';
 }
                                                                                         
@@ -17,5 +18,6 @@ function test()
 }
 test();
 ?>
---EXPECTF--
-Fatal error: User error handler must not modify error context in %sbug25922.php on line 11
+--EXPECT--
+Undefined variable: data
+Undefined index here: ''