Re: How can I do this -- method chaining
| From: | Chris | Date: | Thu, 31 Jan 2008 00:44:14 +0000 |
| Subject: | Re: How can I do this -- method chaining | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268387@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
On Wed, January 30, 2008 6:19 pm, Chris wrote:I was just picking on the phrasing, nothing else :)Ah well.I dunno about the OOP instances getting GC'ed, but PHP *definitely* reclaims memory from arrays and strings as they go out of scope, usually.Does anyone else find that funny? :) It definitely does it ... usually ;)
It definitely does it when it can, but you can confuse it with enough circular references and large enough data structures that it ends up with a giant mess of data it can't GC, because it's just not THAT smart.Yep, they suck pretty hard and can be pretty hard to unravel at times but that's another topic altogether.
There are improvements coming in this area, I think, in PHP 6, if I remember the posts to internals correctly.Awesome :) -- Postgresql & php tutorials http://www.designmagick.com/