ID: 34329
Updated by: [EMAIL PROTECTED]
Reported By: marcos dot neves at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: *
PHP Version: 5.1.0RC1
New Comment:
Maybe you should read how the "bug" was resolved? It wasn't really bug
in PHP itself but just missing documentation.
Previous Comments:
------------------------------------------------------------------------
[2005-09-01 16:06:40] marcos dot neves at gmail dot com
Description:
------------
The bug #31675 is closed and says its fixed,
but the problem persist in 5.04 and 5.1.
Reproduce code:
---------------
<?
function error_handler1() {
echo "[".__FUNCTION__."]";
}
function error_handler2() {
echo "[".__FUNCTION__."]";
restore_error_handler();// does not restore
}
set_error_handler('error_handler1');
set_error_handler('error_handler2');
echo foo;
?>
Expected result:
----------------
[error_handler1]foo
Actual result:
--------------
[error_handler2]foo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34329&edit=1