Negative memory_get_usage() Values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux