PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PHP » PHP_CompatInfo » Bug #1360

PHP memory exhausted when parsing a huge dir

Details

Submitted2004-05-07 09:42 UTC
Frompowtac at gmx dot de
StatusWont fix
PackagePHP_CompatInfo
PHP Version4.3.4
OSLinux
Roadmaps(Not assigned)

Comments

[2004-05-07 09:42 UTC] powtac at gmx dot de

Description:
------------
PHP_CompatInfo: 0.8.3

When parsing a dir with about 600 files (not all are *.php) I recive the following error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 12 bytes) in /usr/share/php/PHP/CompatInfo.php on line 400

Idea: could we free memory while parsing different dirs? Or free memory when parsing non "file_ext" files

Reproduce code:
---------------
$options = array('file_ext' => array('php'),'ignore_files' => array(__FILE__));

$array = $info->parseFolder($folder,$options);

Expected result:
----------------
Array with fileInformations

Actual result:
--------------
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 12 bytes) in /usr/share/php/PHP/CompatInfo.php on line 400

[2004-05-12 14:13 UTC] powtac at gmx dot de

Yes, tried PHP_CompatInfo 0.8.4, same problem.