Bug #52614 [Opn->Asn]: Memory leak when writing on uninitialized variable returned from method call
| From: | felipe@php.net | Date: | Sun, 15 Aug 2010 17:13:15 +0000 |
| Subject: | Bug #52614 [Opn->Asn]: Memory leak when writing on uninitialized variable returned from method call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153454@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52614&edit=1
ID: 52614
Updated by: felipe@php.net
Reported by: felipe@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] felipe@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