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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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 07:01:30 2024 UTC