|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-14 11:45 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 17:00:01 2025 UTC |
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