php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32437 two leaks in zend_execute.c when executing bug22836.phpt
Submitted: 2005-03-23 23:13 UTC Modified: 2005-06-06 09:09 UTC
From: tony2001 at phpclub dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.* OS: SuSE 9.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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tony2001 at phpclub dot net
New email:
PHP Version: OS:

 

 [2005-03-23 23:13 UTC] tony2001 at phpclub dot net
Description:
------------
Found 2 leaks in zend_execute.c when executing Zend/tests/bug22836.phpt.

/usr/src/dev/php-src_5_0_clean/Zend/zend_execute.c(616) :  Freeing 0x1BF0F544 (4 bytes), script=/www/index.php
/usr/src/dev/php-src_5_0_clean/Zend/zend_variables.c(137) : Actual location (location was relayed)
/usr/src/dev/php-src_5_0_clean/Zend/zend_execute.c(271) :  Freeing 0x1BF0FBB4 (16 bytes), script=/www/index.php


Reproduce code:
---------------
The same as in bug #22836.
Pasting it here for additional convenience.
<?php

function &f()
{
        $x = "foo";
        var_dump($x);
        print "'$x'\n";
        return ($a);
}
for ($i = 0; $i < 8; $i++) {
        $h =& f();
}
?>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-03 23:53 UTC] sniper@php.net
Leaks still present in PHP_5_0 (and output not anywhere close what it should be )

In HEAD, the output is again different and test fails but no leaks..

 [2005-04-08 14:54 UTC] derick@php.net
Patch is available, but not yet committed as there are a couple of more problems.
 [2005-06-06 09:09 UTC] dmitry@php.net
This bug is already fixed together with #22836 in CVS HEAD and PHP_5_0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 18:01:29 2024 UTC