On occasion, maybe once a day, our PHP web server using APC will raise an E_WARNING error that my error handler catches and logs. It looks similar to this:
require_once() [function.require-once]: GC cache entry '/path/file.php'
(dev=47775802 ino=183046) was on gc-list for 3602 seconds -
in /path/some_other_file.php(31)
Is this a recoverable error? Should I just ignore these warnings?
I've currently got it so that the script dies on E_WARNINGs be开发者_运维问答cause we want the code stable and most warning's I've seen are not continuable (missing includes, asserts, etc.)
APC has plenty of memory, 100MB, and only approx. 32MB used by both File and User caches.
In case you are thinking about APCU (PHP 5.5) I suggest to upgrade APC to the version, where this PR is merged. APCU 4.0.3 at least.
From what I can tell from Googling, this has no effect on the currently running script and therefore the warning can be ignored.
精彩评论