I'm working on a Dreamhost VPS, so I don't know if that has anything to do with this:
The include_path
entry in the php.ini file seems to be completely ignored. There are several php.ini files scattered around by default, but none of them seem to be used when determining the include_path
value. Including the file that phpinfo()
says it's reading from (and no other files are overriding it as far as I can tell).
I can completely remove the php.ini file, and the include path doesn't change. It's always equal to .:/usr/local/lib/php:/user/[username]/pear
when I run a web request. It should be .:/usr/local/lib/php:/usr/local/php5/lib/pear
.
/user isn't even a directory on the server. It's /home. And phpinfo()
prints out a different include_path
depending on whether I call it from the command line (where it works correctly) or via a web request (where it returns the above).
The really weird bit is that the include path as shown by phpinfo()
sometimes randomly changes when I refresh to be the correct value, but refreshing again resets it to the old, wrong value.
So... What?