I have Apache HTTP Server v2.2 with PHP in FastCGI communication.
I tried to edit the include_path
variable in php.ini
to an empty string but it didn't work,
the path remains: .:/usr/local/lib/php
(as seen by phpinfo()).
If I set the include path to a colon (:
), then the include path finally changes.
How can I set it to an empty string?
Thank you.
The value has to be something besides an empty string. If you don't want PHP to include anything from anywhere, you can set it to some nonexistent path (and let it fail to find the path when it tries to include stuff). It's not an ideal solution, but it'll work.
I have a feeling you're going about this wrong, though. include_path
is extremely useful, unless you intend to hard-code your app's path everywhere (which is a bad idea in itself, IMO). If you set it to just .
, that should be enough to get rid of paths that shouldn't be in there, while keeping it practical to include
stuff.