Jump to content

Recommended Posts

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.