dmitry Fri Jul 22 03:34:48 2005 EDT
Modified files: (Branch: PHP_5_0)
/php-src/tests/lang bug25922.phpt
Log:
$context is not longer passed by reference, so its modification has no effect
http://cvs.php.net/diff.php/php-src/tests/lang/bug25922.phpt?r1=1.1.4.1&r2=1.1.4.2&ty=u
Index: php-src/tests/lang/bug25922.phpt
diff -u php-src/tests/lang/bug25922.phpt:1.1.4.1
php-src/tests/lang/bug25922.phpt:1.1.4.2
--- php-src/tests/lang/bug25922.phpt:1.1.4.1 Thu Jun 9 06:14:51 2005
+++ php-src/tests/lang/bug25922.phpt Fri Jul 22 03:34:48 2005
@@ -6,6 +6,7 @@
<?php
function my_error_handler($error, $errmsg='', $errfile='', $errline=0,
$errcontext='')
{
+ echo "$errmsg\n";
$errcontext = '';
}
@@ -17,5 +18,6 @@
}
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: ''
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php