#48690 [Opn->Ver]: Memory leaks when using cyclic references (PHP_5_2 only)
| From: | jani@php.net | Date: | Mon, 30 Nov 2009 19:30:48 +0000 |
| Subject: | #48690 [Opn->Ver]: Memory leaks when using cyclic references (PHP_5_2 only) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145234@lists.php.net to get a copy of this message | ||
ID: 48690
Updated by: jani@php.net
Reported By: felipe@php.net
-Status: Open
+Status: Verified
Bug Type: Scripting Engine problem
-Operating System: Linux
+Operating System: *
-PHP Version: 5.2CVS-2009-06-25 (CVS)
+PHP Version: 5.2CVS-2009-11-30
Previous Comments:
------------------------------------------------------------------------
[2009-06-25 12:53:43] felipe@php.net
Description:
------------
This issue is PHP5_2 only.
See below.
Reproduce code:
---------------
$x = array(); $x[0] = &$x;
Expected result:
----------------
No memleak.
Actual result:
--------------
[Thu Jun 25 09:48:53 2009] Script: '-'
/home/felipe/dev/php5_2/Zend/zend_execute.c(833) : Freeing 0x0A8388E8
(16 bytes), script=-
[Thu Jun 25 09:48:53 2009] Script: '-'
/home/felipe/dev/php5_2/Zend/zend_vm_execute.h(18351) : Freeing
0x0A83933C (44 bytes), script=-
/home/felipe/dev/php5_2/Zend/zend_API.c(827) : Actual location
(location was relayed)
Last leak repeated 1 time
[Thu Jun 25 09:48:53 2009] Script: '-'
/home/felipe/dev/php5_2/Zend/zend_execute.c(1001) : Freeing 0x0A839440
(35 bytes), script=-
/home/felipe/dev/php5_2/Zend/zend_hash.c(388) : Actual location
(location was relayed)
=== Total 4 memory leaks detected ===
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48690&edit=1