php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48690 Memory leaks when using cyclic references (PHP_5_2 only)
Submitted: 2009-06-25 12:53 UTC Modified: 2011-12-27 09:59 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: felipe@php.net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2CVS-2009-11-30 OS: *
Private report: No CVE-ID: None
 [2009-06-25 12:53 UTC] 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 ===


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-27 09:59 UTC] stas@php.net
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.


 [2011-12-27 09:59 UTC] stas@php.net
-Status: Verified +Status: Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 23:01:29 2024 UTC