Reply to Re: [PHP] objects destroyed in same order as created?

Your name:

Reply:


Posted by Jasper Bryant-Greene on 07/22/05 00:05

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация