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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC