Home » PHP » PHP_CompatInfo » Bug #1360
PHP memory exhausted when parsing a huge dir
Details
| Submitted | 2004-05-07 09:42 UTC |
|---|---|
| From | powtac at gmx dot de |
| Status | Wont fix |
| Package | PHP_CompatInfo |
| PHP Version | 4.3.4 |
| OS | Linux |
| 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.