NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP 5 singleton/destructor question

David Mintz dmintz at davidmintz.org
Fri Apr 1 14:26:58 EST 2005


On Fri, 1 Apr 2005, Tim Gales wrote:

> Dan Cech wrote:
> >
> > My guess would be that the destructor *is* called, just that unless you
> > manually run it, via register_shutdown_function or whatever, it's called
> > by the garbage collector *after* the page is sent to the browser...so
> > you would't see the output.
> >
> > I could be totally wrong though...
>
> could you trigger an error log entry in
> the destructor to see for sure...
>

Been there and done all that, with negative results.

---
David Mintz
http://davidmintz.org/



More information about the talk mailing list