johnSTK Posted April 18, 2008 Share Posted April 18, 2008 I hope this is the right forum for this. I posted this in PHP Help and was told to come here. I recently installed the extension APC on my development server so that I could optimize my PHP code in the context of APC running. I found that when I use an include() statement with a relative path, PHP will generate a warning that it can't find the specified file as it tries each path in the include_path settings, until it finally finds it. This doesn't happen when APC is not installed, since PHP expects that the specified file to include won't be found in every path in the include_path! I can suppress the warnings, but I would rather show all real warnings while I'm developing. Is there any way to prevent these warnings from being generated, or are my only options to either ignore the warnings or use the absolute path? It seems as if it's a bug that APC generates these warnings with relative paths, but it's more likely something on my end -- surely other people have used relative paths with APC and not had to deal with these warnings. Quote Link to comment https://forums.phpfreaks.com/topic/101780-apc-generates-unnecessary-php-warnings-with-include/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.