From: support at malyweb dot cz Operating system: winXp PHP version: 5CVS-2004-10-31 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: exception handler does not work
Description: ------------ the code below causes that window critical error dialog appear and no result is shown I tried it on 5.0.2 - it did not work so I downloaded this latest version (5.0.3-dev) and it is still not working. (I read this one also: http://bugs.php.net/bug.php?id=30230 but actually do not understand it - the code is not working also) btw: this works fine function exceptionHandler($exception){ echo('Uncaught exception: '.$exception->getMessage()); } set_exception_handler('exceptionHandler'); throw new Exception('oh no ... ;)');exit; Reproduce code: --------------- <?php class core_exception { public static function exceptionHandler($exception){ echo('Uncaught exception: '.$exception->getMessage()); } } $_EXCEPTION = new core_exception(); set_exception_handler(array($_EXCEPTION,'exceptionHandler')); throw new Exception('oh no ... ;)');exit; ?> Expected result: ---------------- Uncaught exception: oh no ... ;) Actual result: -------------- via browser: no result + critical error of apache via cmdline: no result + critical error of CLI or CGI/FastCGI via zde debugger: shows the expected result (build 1482) -- Edit bug report at http://bugs.php.net/?id=30635&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30635&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30635&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30635&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30635&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30635&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30635&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30635&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30635&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30635&r=support Expected behavior: http://bugs.php.net/fix.php?id=30635&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30635&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30635&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30635&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30635&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30635&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30635&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30635&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30635&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30635&r=mysqlcfg