From:             felipe
Operating system: 
PHP version:      Irrelevant
Package:          SPL related
Bug Type:         Bug
Bug description:Memory when calling DirectoryIterator's constructor twice

Description:
------------
See below.

Test script:
---------------
<?php

$x = new DirectoryIterator('.');
$x->__construct('.');


Actual result:
--------------
/home/felipe/dev/php-src/main/streams/streams.c(530) : Stream of type 'dir'
0x7fd490d7e5c0 (path:(null)) was not closed
[Mon Apr 23 13:07:34 2012]  Script:  '../bug.php'
/home/felipe/dev/php-src/main/streams/streams.c(292) :  Freeing
0x7FD490D7E5C0 (248 bytes), script=../bug.php
/home/felipe/dev/php-src/main/streams/plain_wrapper.c(883) : Actual
location (location was relayed)
[Mon Apr 23 13:07:34 2012]  Script:  '../bug.php'
/home/felipe/dev/php-src/ext/spl/spl_directory.c(252) :  Freeing
0x7FD490D7EA08 (2 bytes), script=../bug.php
=== Total 2 memory leaks detected ===


-- 
Edit bug report at https://bugs.php.net/bug.php?id=61828&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61828&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61828&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61828&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61828&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61828&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61828&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61828&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61828&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61828&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61828&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61828&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61828&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61828&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61828&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61828&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61828&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61828&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61828&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61828&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61828&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61828&r=mysqlcfg

Reply via email to