Re: destructor not called for static members?

From: Date: Thu, 10 Mar 2005 12:02:59 +0000
Subject: Re: destructor not called for static members?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210427@lists.php.net to get a copy of this message
YaronKh@clalit.org.il 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

« previous php.general (#210427) next »