Re: objects destroyed in same order as created?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux