php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3024 break n : memory leak
Submitted: 1999-12-22 10:41 UTC Modified: 1999-12-22 13:22 UTC
From: danny dot heijl at cevi dot be Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (22/12/1999) OS: RH Linux 5.2
Private report: No CVE-ID: None
 [1999-12-22 10:41 UTC] danny dot heijl at cevi dot be
break with a "level" leaks memory :

Test script :
>?php
for ($i=0; $i<=2; $i++) {
  echo "i=$i\n";
  switch($i) {
    case 1:
      echo "In branch 1\n";
      break 2;
    default:
      echo "In default\n";
      break;
  }
}
echo "hi\n";
?>
X-Powered-By: PHP/4.0b4-dev
Content-Type: text/html

i=0
In default
i=1
In branch 3
hi
../../php4/Zend/zend_execute.c(1117) :  Freeing 0x08230700 (12 bytes), script=xx.php

----------

Danny
---

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-22 13:22 UTC] zeev at cvs dot php dot net
Fixed (we were aware of this leak for many months, but
never really figured out how to sort it out until today...)

Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 18:01:34 2024 UTC