Re: Exception thrown without a stack frame

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux