Re: Re: Destructors
| From: | Lukas Smith | Date: | Mon, 24 May 2004 15:25:11 +0000 |
| Subject: | Re: Re: Destructors | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10072@lists.php.net to get a copy of this message | ||
John Coggeshall wrote:
On Mon, 2004-05-24 at 10:40, Adam Maccabee Trachtenberg wrote:Which is what PEAR does to "emulate" destructors. But its doesnt really give you much control over the order of the stack. Its just the order in which you have created your instances. Anyways this is more and more turning into php-general@ material :-) regards, Lukas SmithRight. That'll also work. :)I suppose you could push object references on a stack and register a shutdown function which pops / unset()s if you really wanted a order to it.. (that's an untested theory though)