Please sign in to comment.
Currently there are three files in the cache directory, which don't n…
…eed to be there: * /cache/autoloader.php * /cache/log.php * /cache/trace.txt 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. 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. This commit 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. This has been logged as a bug at http://www.projectpier.org/node/3245.
- Loading branch information...
Showing with 6 additions and 2 deletions.