#43278 [Opn->Bgs]: If eval fails used memory will not freed anymore
| From: | jani@php.net | Date: | Wed, 14 Nov 2007 11:45:24 +0000 |
| Subject: | #43278 [Opn->Bgs]: If eval fails used memory will not freed anymore | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119636@lists.php.net to get a copy of this message | ||
ID: 43278
Updated by: jani@php.net
Reported By: kh dot wild at wicom dot li
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: FreeBSD 6.2
PHP Version: 5.2.5
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2007-11-13 13:24:01] kh dot wild at wicom dot li
Description:
------------
When an eval fails on execution
the memory consumtions raises.
The script below simulates the
situation.
Is that an memory-leak?
Reproduce code:
---------------
<?
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
ini_set('error_reporting', 1 );
for( $i = 0; $i < 100000; $i++ )
{
eval( '$x = / 1000' );
}
print( "finish\n" );
?>
Expected result:
----------------
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to
allocate 4864 bytes) in test.php(7) : eval()'d code on line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43278&edit=1