ID:               34353
 User updated by:  devik at cdi dot cz
 Reported By:      devik at cdi dot cz
-Status:           Feedback
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      5.1.0RC1
 New Comment:

Oh ok, sorry - I found it is already fixed in CVS.


Previous Comments:
------------------------------------------------------------------------

[2005-09-02 23:29:40] [EMAIL PROTECTED]

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.


------------------------------------------------------------------------

[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

Reply via email to