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
 [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 02:01:29 2024 UTC