#48643 [NEW]: Memory not freed with FilterIterator
| From: | zoe@php.net | Date: | Mon, 22 Jun 2009 11:41:59 +0000 |
| Subject: | #48643 [NEW]: Memory not freed with FilterIterator | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-138627@lists.php.net to get a copy of this message | ||
From: zoe@php.net
Operating system: Linux (Ubuntu)
PHP version: 5.2CVS-2009-06-22 (CVS)
PHP Bug Type: SPL related
Bug description: Memory not freed with FilterIterator
Description:
------------
An excessive about of memory is used when a class which extends
FilterIterator is used to filter for certain file types when scanning a
source tree.
Reproduce code:
---------------
A small benchmark is provided in the tar file
here:http://filebin.ca/okgvtt/memcheck.tar
The file contains three tests which all use code in Util.php.
To run the tests edit the shell script memcheck to add the top level
directory of a PHP source tree as input to each test. Then just execute the
shell script.
The benchmarks produce a list of directories which contain .phpt files,
the memory usage when the class PhptFilterIterator is used is 20 times
higher than the other two methods.
Expected result:
----------------
Would expect the memory usage to be similar.
Actual result:
--------------
Memory usage is 20 times higher.
--
Edit bug report at http://bugs.php.net/?id=48643&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48643&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48643&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48643&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48643&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48643&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48643&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48643&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48643&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48643&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48643&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48643&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48643&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48643&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48643&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48643&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48643&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48643&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48643&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48643&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48643&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48643&r=mysqlcfg