Re: How can I do this -- method chaining
| From: | Richard Lynch | Date: | Thu, 31 Jan 2008 00:44:04 +0000 |
| Subject: | Re: How can I do this -- method chaining | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268386@lists.php.net to get a copy of this message | ||
On Wed, January 30, 2008 6:19 pm, Chris wrote:
>
>> 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 ;)
Ah well.
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.
There are improvements coming in this area, I think, in PHP 6, if I
remember the posts to internals correctly.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?