#34353 [Opn->Fbk]: func_get_arg(s) leak
| From: | sniper@php.net | Date: | Fri, 02 Sep 2005 21:29:41 +0000 |
| Subject: | #34353 [Opn->Fbk]: func_get_arg(s) leak | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84453@lists.php.net to get a copy of this message | ||
ID: 34353
Updated by: sniper@php.net
Reported By: devik at cdi dot cz
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.1.0RC1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
I can not reproduce with latest CVS checkout of PHP_5_1 branch.
Previous Comments:
------------------------------------------------------------------------
[2005-09-02 22:55:29] devik at cdi dot cz
Description:
------------
There is missing INIT_PZVAL(return_value);
at end of zif_func_get_arg thus it is leaking
data.
Reproduce code:
---------------
<?php
function f()
{
echo func_get_arg(0);
}
$a=$b=2;
f($a);
?>
Expected result:
----------------
2/copy/build/php-5.1.0RC1/Zend/zend_vm_execute.h(167) : Freeing
0x08466324 (16 bytes), script=tst.php
=== Total 1 memory leaks detected ===
Actual result:
--------------
2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34353&edit=1