|Status:||closed - fixed|
Currently there are three files in the cache directory that are distributed as part of the release tarball:
These files ship as empty place-holder files, but will be written to by the application in certain situations. This causes problems with revision control, as the files show up as 'modified' and may end up being committed to the source repository. This is not just a problem in the main ProjectPier repository, but it has down-stream implications too (we keep a vendor repository to manage deployment of third-party code).
The code already creates these files automatically if they don't already exist, but there are a couple of places where errors may be raised if they are not present. The attached patch file (against 0.8.8 SP2) contains the necessary modifications to remove these errors:
* When including the autoloader.php, we suppress errors using @ prior to the fopen() statement.
* The __production_error_handler() was logging all errors (except E_STRICT), even if they were deliberately suppressed using @. This patch updates the function so that it ignores suppressed errors. I've also added a comment to explain what 2048 means, and why the E_STRICT constant isn't being used.