NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP 5 singleton/destructor question

David Mintz dmintz at davidmintz.org
Thu Mar 31 17:02:06 EST 2005


OK, here is the ugliest workaround you've seen all day. A pint of beer for
anyone who can explain why I am having to do this. I added to my
constructor:

register_shutdown_function(array($this, '__destruct'));

and it works, so to speak.

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



More information about the talk mailing list