From: marcos dot neves at gmail dot com Operating system: * PHP version: 5.1.0RC1 PHP Bug Type: Unknown/Other Function Bug description: The bug #31675 is present in 5.04 and 5.1
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 bug report at http://bugs.php.net/?id=34329&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34329&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34329&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34329&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34329&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34329&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34329&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34329&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34329&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34329&r=support Expected behavior: http://bugs.php.net/fix.php?id=34329&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34329&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34329&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34329&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34329&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34329&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34329&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34329&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34329&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34329&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34329&r=mysqlcfg