I've been happily using APC for the last few months, but there's one problem I've been having. It seems that since APC is in charge of compiling the code, it's also in charge of logging compile errors. Except that... well, it doesn't. My error_log only contains runtime errors. Parse errors only come through when I disable APC.
How can I log compile errors when using APC?
APC: Logging for compile errors?
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: APC: Logging for compile errors?
Test every script by doing from the command line
You can also use apc_compile_file() to compile the file from within a script. This function returns false if there are errors
Code: Select all
php -l filename.phpYou can also use apc_compile_file() to compile the file from within a script. This function returns false if there are errors