rack-legacy
rack-legacy copied to clipboard
PHP: `include_path` and `auto_prepend_file`cannot be set
I am using rack-legacy to run a PHP app under pow.
Now rack-legacy does not parse .htaccess
and it seems there is no way I can set include_path
and auto_prepend_file
so all scripts include my standard lib.
I think you can use a .user.ini file right?
It seems like no, I can't.
I am on PHP 5.4.38
I provided a .user.ini
with
include_path="/Users/aljoscha/Sites/theater.local/httpdocs/lib/php/"
auto_prepend_file="init.php"
but phpinfo()
still says
include_path .:/usr/local/Cellar/php54/5.4.38/lib/php
I'll take a closer look when I get a chance to find out why .user.ini
is not working.
In the meantime you could monkey-patch php_process_parameters to include some extra php options to set those command line options.
Thanks a lot for your attention. If I can help in any way, let me know.