#37891 [Opn->Asn]: memory leak

From: Date: Thu, 22 Jun 2006 18:57:45 +0000
Subject: #37891 [Opn->Asn]: memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98677@lists.php.net to get a copy of this message
ID: 37891 Updated by: tony2001@php.net Reported By: hannes dot magnusson at gmail dot com -Status: Open +Status: Assigned Bug Type: Scripting Engine problem Operating System: FreeBSD PHP Version: 5CVS-2006-06-22 (CVS) -Assigned To: +Assigned To: dmitry Previous Comments: ------------------------------------------------------------------------ [2006-06-22 18:20:03] hannes dot magnusson at gmail dot com Description: ------------ Can't seem to get the example any shorter... Reproduce code: --------------- <?php class foo { public $arr = array(); function foo(){ $this->backtrace = debug_backtrace(); call_user_func(array($this, "bar")); } function bar() { array_unshift($this->arr, debug_backtrace()); } } $foo = &new foo; ?> Actual result: -------------- /usr/src/clean/php5/Zend/zend_execute.c(403) : Freeing 0x082F48E4 (16 bytes), script=/usr/local/php5/.... === Total 1 memory leaks detected === ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37891&edit=1

« previous php.bugs (#98677) next »