Re: New destructors implementation

From: Date: Fri, 06 Feb 2004 22:52:27 +0000
Subject: Re: New destructors implementation
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-7636@lists.php.net to get a copy of this message
At 22:19 06/02/2004, Michael Walter wrote:
Usually, it is sufficient to deconstruct in reverse construction order in this case: $obj=PLA; $container=...; Hence, destruction order is $container, $obj -- no problem (unless you're dealing with circular references, which actually are the problem I think).
Yeah, but 'usually' doesn't cut it... If someone does $container=...; $obj = $container->getFoo(); then you're screwed with that solution. And it's not as if it's that rare... Zeev

« previous php.internals (#7636) next »