Bug #61828 [Asn]: Memleak when calling Directory(Recursive)Iterator/Spl(Temp)FileObject ctor twice

From: Date: Tue, 25 Jun 2013 04:40:06 +0000
Subject: Bug #61828 [Asn]: Memleak when calling Directory(Recursive)Iterator/Spl(Temp)FileObject ctor twice
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-179772@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61828&edit=1

 ID:                 61828
 Updated by:         laruence@php.net
 Reported by:        felipe@php.net
 Summary:            Memleak when calling
                     Directory(Recursive)Iterator/Spl(Temp)FileObject
                     ctor twice
 Status:             Assigned
 Type:               Bug
 Package:            SPL related
 PHP Version:        Irrelevant
-Assigned To:        reeze
+Assigned To:        
 Block user comment: N
 Private report:     N

 New Comment:

@feilip we dicussed on that PR very hardly, and finally decide to not ci the patch


Previous Comments:
------------------------------------------------------------------------
[2013-06-24 19:35:26] felipe@php.net

I see the pull request was closed... but the fix has been in fact applied?

------------------------------------------------------------------------
[2012-04-30 03:49:04] reeze dot xia at gmail dot com

Hi, felipe:
   I have attached a patch for this bug. and sent pull request at:
https://github.com/php/php-src/pull/71

will you take a look at this request?

Thank you!

------------------------------------------------------------------------
[2012-04-23 16:10:34] felipe@php.net

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 this bug report at https://bugs.php.net/bug.php?id=61828&edit=1


Thread (6 messages)

« previous php.bugs (#179772) next »