One of my deployments has a wrapper script which regenerates additional_files.cfg on each run. The average size of this file is 4.5m (roughly 48,000 files/directories).
Runs occasionally fail due to the webhost's tweaking of php.ini .
- If safe_mode is enabled files then file_exists may return false
- The PHP memory limit may be hit
- Max execution time may also be hit
The first can only really be addressed by editing php.ini - although there are potential workarounds, they all feel a bit hacky.
The latter two can be addressed, so a bugfix should be developed.