From:             fel...@php.net
Operating system: Linux
PHP version:      5.2CVS-2009-06-25 (CVS)
PHP Bug Type:     Scripting Engine problem
Bug description:  Memory leaks when using cyclic references

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 bug report at http://bugs.php.net/?id=48690&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48690&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48690&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48690&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48690&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48690&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48690&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48690&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48690&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48690&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48690&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48690&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48690&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48690&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48690&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48690&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48690&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48690&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48690&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48690&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48690&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48690&r=mysqlcfg

Reply via email to