Re: How can i get the location of an exit()/die() from within register_shutdown_function()?

From: Date: Wed, 16 Jul 2008 08:33:53 +0000
Subject: Re: How can i get the location of an exit()/die() from within register_shutdown_function()?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-276902@lists.php.net to get a copy of this message
Mathijs van Veluw wrote: > Hello there, > > I have an shutdown function to catch fatal-errors etc.. > Now when there is an exit() somewhere i get an empty message from > get_last_error(). > I want to know the location of this exit() or die(). > > Is there a way to get the file and line-number from where the exit/die > originated? debug_backtrace ? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#276902) next »