summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-07-22 07:34:24 +0000
committerDmitry Stogov <dmitry@php.net>2005-07-22 07:34:24 +0000
commit99cb1b8004c9f642761abe980e5df3f3682d143f (patch)
tree57e3dd666dd5117b85bfe0a2eedb5a19139b3849 /tests
parent1c82ec11a1ce04a9e4999a33f35d527d4e38306a (diff)
downloadphp-git-99cb1b8004c9f642761abe980e5df3f3682d143f.tar.gz
$context is not longer passed by reference, so its modification has no effect
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lang/bug25922.phpt6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lang/bug25922.phpt b/tests/lang/bug25922.phpt
index 1191472f29..bb030c9df8 100755
--- a/tests/lang/bug25922.phpt
+++ b/tests/lang/bug25922.phpt
@@ -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: ''