php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2375 eval memory leak
Submitted: 1999-09-24 12:48 UTC Modified: 1999-10-24 12:44 UTC
From: bago at datasail dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Latest CVS (24/09/1999) OS: FreeBSD 3.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 - 11 = ?
Subscribe to this entry?

 
 [1999-09-24 12:48 UTC] bago at datasail dot net
try this code... it works fine on php4cvs but crashes at around $i==4000 (on my pc).

<?php
$a=0;
for ($i=0; $i<30000; $i++) {eval('$a += 1;');print($a.'<br>');}
?>

it does not matter what i'm evaluing.... just increase $i.. and it will crash. (php3cvs DSO with versioning)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-24 12:44 UTC] sas at cvs dot php dot net
That is a designed mis-feature.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 10:01:30 2024 UTC