Re: Exception thrown without a stack frame

From: Date: Sat, 26 Jan 2008 18:21:02 +0000
Subject: Re: Exception thrown without a stack frame
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-268160@lists.php.net to get a copy of this message
Nathan Rixham schreef:
wayyyyy offf topic-ish here.. class destructors, surely they differ from the register_shutdown_function in execution style? seeing as one can echo / do a bit of jiggery pokery before the buffers close. what exactly is the difference?
the problem with destructors is that you have no garantee of the destruction order which means you can't garanteed any other objects will be available (e.g. to write a log to a db or something similar)
Richard Lynch wrote:
On Fri, January 25, 2008 1:31 pm, Jochem Maas wrote:
setup as via register_shutdown_function().
I missed that bit. Sorry for the noise. shutdown functions are run outside the normal context of PHP, and need special care. Output won't go anywhere, and try/catch won't work, as the bulk of the PHP "guts" have already gone away.


« previous php.general (#268160) next »