Edit report at https://bugs.php.net/bug.php?id=48690&edit=1
ID: 48690 Updated by: s...@php.net Reported by: fel...@php.net Summary: Memory leaks when using cyclic references (PHP_5_2 only) -Status: Verified +Status: Bogus Type: Bug Package: Scripting Engine problem Operating System: * PHP Version: 5.2CVS-2009-11-30 Block user comment: N Private report: N New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2009-06-25 12:53:43] fel...@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 https://bugs.php.net/bug.php?id=48690&edit=1