Negative memory_get_usage() Values
| From: | Chris | Date: | Sun, 26 Nov 2006 14:35:58 +0000 |
| Subject: | Negative memory_get_usage() Values | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-245150@lists.php.net to get a copy of this message | ||
Hey gang,
I'm getting a negative return value from memory_get_usage() using the following script. My I've got --enable-memory-limit enabled and my memory_limit is set to 100MB (which should more than enough memory).
I suspect that there is a bug in utf8_encode() but I'd like others to test it (on different platforms) before I submit it as a bug.
<?php
for ($i=0; $i < 20000; $i++) {
echo utf8_encode('This is a test');
}
echo memory_get_usage();
?>
Chris
chris@dented-planet.net