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
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: 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 29 09:01:33 2024 UTC