unset, memory_limit
| From: | Pierre-Alain Joye | Date: | Mon, 09 Feb 2004 14:07:18 +0000 |
| Subject: | unset, memory_limit | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-7662@lists.php.net to get a copy of this message | ||
Hello,
While reading the bugs reports I came up with something I did not
expect with the bug 27714. Maybe I have had too much ram in the past
years ;)
So this is bug is bogus, and this is the expected behavior. Unset
(or set the var null) frees the memory only if memory_limit is enabled
and not equal to -1 (unlimited) for both php5 and php4.
Why? That's sound a bit silly to me, as that makes the related
functions useless and does not allow anyone to free a huge variable
when he does not need it anymore. My main problem is when I use CLI or
gtk scripts.
Or is there any "performance" issues there?
At least it's a documentation bug as nothing in the manual described
this behavior.
pierre