You are here: Re: Shutdown order « PHP Programming Language « IT news, forums, messages
Re: Shutdown order

Posted by Andy Hassall on 11/16/06 23:26

On Thu, 16 Nov 2006 21:28:48 +0100, "Thomas Mlynarczyk"
<thomas@mlynarczyk-webdesign.de> wrote:

>But at least the order of "calling all shutdown functions", "calling all
>destructors" and "calling ob buffer function" should be well-determined,

It looks, from the mailing list post from the other part of the thread, that
they have finally fixed this. It's been broken for a while, and was re-ordered
but was still broken, and now the order makes sense so long as you have quite a
recent version of PHP.

>even if the order in which the destructors are called may not be guaranteed.

>And this still doesn't explain why I can access an object *after* its
>destructor has been called. Strange...

The shutdown function ordering didn't make sense previously, so you were
seeing things you shouldn't have seen - objects who had their destructors
already called before the rest of the script had actually run yet.

Then again I suspect that the order of destruction of objects is still
undefined and not actually influenced by any sort of reference graph, so if you
reference other objects in destructors you're still in for an interesting time.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this 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

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