ID: 32437
Updated by: [EMAIL PROTECTED]
Reported By: tony2001 at phpclub dot net
-Status: Verified
+Status: Closed
Bug Type: Zend Engine 2 problem
Operating System: SuSE 9.2
PHP Version: 5.*
New Comment:
This bug is already fixed together with #22836 in CVS HEAD and PHP_5_0.
Previous Comments:
------------------------------------------------------------------------
[2005-04-08 14:54:30] [EMAIL PROTECTED]
Patch is available, but not yet committed as there are a couple of more
problems.
------------------------------------------------------------------------
[2005-04-03 23:53:06] [EMAIL PROTECTED]
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