Re: stdClass
| From: | Michael Walter | Date: | Fri, 27 Feb 2004 17:36:29 +0000 |
| Subject: | Re: stdClass | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8235@lists.php.net to get a copy of this message | ||
Jakes wrote:
cool, Im going to look more into the engine to see the working. I suppose PHP it isn't as memory intensive as JAVA Quick question, does the zend engine have a garbage collector while we are on the topic? As said, it uses reference counting.Cheers, Michael
"Hartmut Holzgraefe" <hartmut@php.net> wrote in message news:403F5E9B.4050905@php.net...Jakes wrote:You calling it from the base so cleaning you be easier than looking for object referenced variables and setting them to null. Working in a large class hierarchy it could get painful.__destruct() and as far as object references in variables are concerned: the engine destructs all instance member variables when an object is destructed, so the reference counts of the referenced objects are already deceremented no need to free them by hand (this is even true for PHP 4) you only have to take care of cleanup yourself when you have circular refence graphs ... -- Hartmut Holzgraefe <hartmut@php.net>