Edit report at http://bugs.php.net/bug.php?id=52614&edit=1

 ID:                 52614
 Updated by:         fel...@php.net
 Reported by:        fel...@php.net
 Summary:            Memory leak when writing on uninitialized variable
                     returned from method call
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            Scripting Engine problem
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        dmitry
 Block user comment: N



Previous Comments:
------------------------------------------------------------------------
[2010-08-15 19:12:43] fel...@php.net

Description:
------------
See below. It is just like the #52041, but on method calls.

Test script:
---------------
<?php



class foo {

        public $x;

        

        public function test() {

                return $this->x;

        }

}



$foo = new foo;

$foo->test()->a = 1;

Expected result:
----------------
No memory leak

Actual result:
--------------
[Sun Aug 15 14:09:42 2010]  Script:  '../bug.php'

/home/felipe/dev/phptrunk/Zend/zend_execute.c(693) :  Freeing 0xB7C09524
(20 bytes), script=../bug.php

=== Total 1 memory leaks detected ===




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



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52614&edit=1

Reply via email to