#37891 [NEW]: memory leak
| From: | hannes dot magnusson at gmail dot com | Date: | Thu, 22 Jun 2006 18:20:03 +0000 |
| Subject: | #37891 [NEW]: memory leak | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-98673@lists.php.net to get a copy of this message | ||
From: hannes dot magnusson at gmail dot com
Operating system: FreeBSD
PHP version: 5CVS-2006-06-22 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: memory leak
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 bug report at http://bugs.php.net/?id=37891&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37891&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37891&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37891&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37891&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37891&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37891&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37891&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37891&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37891&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37891&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37891&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37891&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37891&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37891&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37891&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37891&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37891&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37891&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37891&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37891&r=mysqlcfg