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
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: danny dot heijl at cevi dot be
New email:
PHP Version: OS:

 

 [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 19:01:34 2024 UTC