Re: objects destroyed in same order as created?

From: Date: Thu, 21 Jul 2005 21:05:49 +0000
Subject: Re: objects destroyed in same order as created?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219150@lists.php.net to get a copy of this message
Shaw, Chris - Accenture wrote:
Jasper, I would have thought php would have called the destructors on each of the classes in a LIFO fashion, but if it doesn't, just use unset() as a workaround, where you can remove the classes in the order you want.
I should add that this behaviour seems to have appeared in PHP 5.1.0b (this application will be released after PHP 5.1.0, so I'm developing it for that version). Maybe related to http://bugs.php.net/33772 ? It's a pain to have to unset() the classes "manually" as this is a large application, but I guess it's either that, downgrade to 5.0, or wait for a fix... Jasper

« previous php.general (#219150) next »