#32437 [Ver]: two leaks in zend_execute.c when executing bug22836.phpt
| From: | derick@php.net | Date: | Fri, 08 Apr 2005 12:54:30 +0000 |
| Subject: | #32437 [Ver]: two leaks in zend_execute.c when executing bug22836.phpt | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76527@lists.php.net to get a copy of this message | ||
ID: 32437
Updated by: derick@php.net
Reported By: tony2001 at phpclub dot net
Status: Verified
Bug Type: Zend Engine 2 problem
Operating System: SuSE 9.2
PHP Version: 5.*
New Comment:
Patch is available, but not yet committed as there are a couple of more
problems.
Previous Comments:
------------------------------------------------------------------------
[2005-04-03 23:53:06] 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-03-23 23:13:28] 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();
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32437&edit=1