Re: New destructors implementation
| From: | Adam Bregenzer | Date: | Fri, 06 Feb 2004 16:43:44 +0000 |
| Subject: | Re: New destructors implementation | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7632@lists.php.net to get a copy of this message | ||
On Fri, 2004-02-06 at 06:01, Stephane Drouard wrote:
> Couldn't PHP implement global object destruction that way:
> * firstly try to destroyed them in the same way as for local
> variables (respecting dependences),
> * for objects that were not destroyed in the first step (certainly
> circular references), destroy them as currently implemented (no
> dependence check). A notice could also be displayed.
+1 I think this is an excellent idea. Otherwise destructors have
limited use. What is the plan for handling static variables in
classes? Will a separate call be made to the destructor to handle these
outside of any instance?
--
Adam Bregenzer
adam@bregenzer.net
http://adam.bregenzer.net/