[PHP] Backtrace in fatal error?

2010-09-01 Thread Paul Freeman
When fatal error occurs is it possible to output also the backtrace in the error log? The simple error message with file line only is quite useless... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Backtrace in fatal error?

2010-09-01 Thread Paul Freeman
When fatal error occurs is it possible to output also the backtrace in the error log? The simple error message with file line only is quite useless... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Backtrace in fatal error?

2010-09-01 Thread Simon J Welsh
I think you need a PHP extension to do this. XDebug works rather nicely for this. On 31/08/2010, at 8:49 PM, Paul Freeman wrote: When fatal error occurs is it possible to output also the backtrace in the error log? The simple error message with file line only is quite useless... -- PHP

Re: [PHP] Backtrace in fatal error?

2010-09-01 Thread Richard Quadling
On 31 August 2010 09:49, Paul Freeman freem...@centrum.cz wrote: When fatal error occurs is it possible to output also the backtrace in the error log? The simple error message with file line only is quite useless... ?php namespace baz; set_error_handler( function($ErrNo, $ErrStr,

Re: [PHP] Backtrace in fatal error?

2010-09-01 Thread freeman3
Thanks! I didn't notice the register_shutdown_function function. But it executes always I want to run it only to track fatal error. Also I can't get the backtrace properly:( I can't use 5.3 so I guess it works differently in 5.2 Richard Quadling wrote: On 31 August 2010 09:49, Paul Freeman

Re: [PHP] Backtrace in fatal error?

2010-09-01 Thread Richard Quadling
On 1 September 2010 13:38, freem...@centrum.cz wrote: Thanks! I didn't notice the register_shutdown_function function. But it executes always I want to run it only to track fatal error. Also I can't get the backtrace properly:( I can't use 5.3 so I guess it works differently in 5.2 Richard