php set_include_path() function returns false
After a while struggling with the php function set_include_path() on windows, became to my attention that using the windows registry to set php configuration values they are set using the php_admin_value which forbids overriding it on run time.
So for example, if you set the include_path on the windows registry and then you call the set_include_path function in your application, it will return false and won’t change the include_path.
The same applies if you use php_admin_value on your .htaccess file or virtual host file.
Después de un tiempo luchando con la la función de PHP set_include_path() en windows, que me retornaba false cuando la llamaba, noté que cuando se usa el registro de windows (windows registry) para modificar la configuracion de PHP (Ver: Registro de windows y la configuracion de PHP), es como utilizar php_admin_value la cual no deja que se modifiquen en tiempo de ejecución.
Por ejemplo, si se usa el registro de windows con la configuración de PHP "include_path” y luego se llama la función set_include_path en la aplicación, esta retorna false (false) y no cambiará la configuración.
Esto aplica también si utiliza php_admin_value en el archivo .htaccess o donde se defina un host virtual.

Follow me on Twitter
RSS