########################################################################################## PHPCBA-4: Server Limits may prevent a full check from being completed ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Fixed (2015-01-30 12:36:35) Project: PHPChangedBinaries (PHPCBA) Reported By: btasker Assigned To: btasker Components: - PHP Client Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== 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. ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2015-01-30 11:01:49 btasker ----------------------------------------------------------------------------------------- Have made sure each file checked can have at least 60 seconds execution time and have removed the _additional\_files.cfg_ contents from memory when no longer required. The overall memory usage could also probably be reduced by removing files from _changedbinariesmain::files_ as they're checked. Running a test update/check with the current changeset at the moment. ----------------------------------------------------------------------------------------- 2015-01-30 11:03:14 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: PHPChangedBinaries Commit: b24cca41626594eaa1b598fabe4eccf0c8a6a111 Author: Ben Tasker