Negative memory_get_usage() Values
- From: chris@xxxxxxxxxxxxxxxxx (Chris)
- Date: Sun, 26 Nov 2006 09:35:58 -0500
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
.
- Follow-Ups:
- Re: [PHP] Negative memory_get_usage() Values
- From: "Richard Lynch"
- Re: [PHP] Negative memory_get_usage() Values
- Prev by Date: Re: [PHP] To install a small program from a web browser
- Next by Date: RE: [PHP] GD, and GD JPEG
- Previous by thread: PHP sendmail proxy (using xinetd)
- Next by thread: Re: [PHP] Negative memory_get_usage() Values
- Index(es):
Relevant Pages
|