Re: New destructors implementation

From: Date: Fri, 06 Feb 2004 23:36:17 +0000
Subject: Re: New destructors implementation
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-7637@lists.php.net to get a copy of this message
At 00:58 07/02/2004, Christian Jerono wrote:
Well so wouldn't 'reverse construction order' mean: $container=...; $obj = $container->getFoo(); results in call of $obj->__destruct(); and then $container->__destruct(); maybe i just missed the problem here?
Yes, and yes you did :) The whole problem is if $container needs to use Foo, its element, during destruction. Zeev

« previous php.internals (#7637) next »