|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-24 21:04 UTC] ilia dot cheishvili at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 04:00:02 2025 UTC |
Description: ------------ getenv() appears to cause a memory leak on Windows XP, 5.2.5. Could not reproduce on FreeBSD 4/PHP 5.0.5. It seems to only happen in the Apache module - the CLI exhibits the expected behavior. Reproduce code: --------------- echo memory_get_usage() . '<br /><br />'; for ( $j = 0; $j < 100; $j++ ) { @getenv('SCRIPT_NAME'); echo memory_get_usage() . '<br />'; } Expected result: ---------------- memory_get_usage() should report the same amount through all iterations Actual result: -------------- memory_get_usage() reports the same amount for the first 28 iterations, then begins to climb and continues to climb