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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bago at datasail dot net
New email:
PHP Version: OS:

 

 [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: Fri Apr 19 21:01:30 2024 UTC