Edit report at http://bugs.php.net/bug.php?id=51001&edit=1
ID: 51001 Comment by: a at b dot c dot de Reported by: abdallah at gmx dot com Summary: Always shows stack trace when a Fatal error occurs Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: Windows 7 PHP Version: 5.3.1 New Comment: An observation from me: A stack trace is dumped in the event of a fatal error (depending on the error reporting level); but it's only when an uncaught exception reaches the top of the call stack without being handled that such an error occurs. If it is caught, then it's not an uncaught exception and therefore not a Fatal error. Previous Comments: ------------------------------------------------------------------------ [2010-02-10 20:05:24] abdallah at gmx dot com Description: ------------ Always shows stack trace when a Fatal error occurs without having to do always something like this : <?php function test() { throw new Exception; } try { test(); } catch(Exception $e) { echo $e->getTraceAsString(); } ?> Reproduce code: --------------- <?php function test() { throw new Exception; } try { test(); } catch(Exception $e) { echo $e->getTraceAsString(); } ?> Expected result: ---------------- #0 /home/bjori/tmp/ex.php(7): test() #1 {main} Actual result: -------------- nothin' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51001&edit=1