Re: destructor not called for static members?

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

 



YaronKh@xxxxxxxxxxxxx wrote:
Hi It is an expected behavior because when you define a static variableit is shared by all objects of the same class. If When you unset one object and the destruct of the static object will be
called, all the other objects will lose the static var as well.

yes, but why destuctor isn`t called after all the execution is finished? i mean the moment when php does clean up before it finishes to process request?


rash

--
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