简体   繁体   中英

In resin, using PHP the include_path directive is defaulted to /usr/share/php , even though I changed it?

Here's the line as I added it in php.ini

include_path = "/usr/share/php/smarty:/usr/share/php5:/usr/share/php:/usr/share/php/pear"

I did echo "Include Path: ". get_include_path(); echo "Include Path: ". get_include_path();

here's that output

Include Path: .:/usr/share/php

I confirmed it using phpinfo() for the correct php.ini, but the path is not being updated.

ed1: I even simplified the path to just 2 paths, still doesn't update. (I am restarting resin each time as well)

ed2: definitely the right file, if I change other settings and do a echo ini_get('display_errors') for instance, I can see it changes. So, what's up with the include path?

ed3: To make sure it's not a malformed uri or something, I used just 1 path, and it still doesn't work.

Thanks,

I found a duplicate question.

Cannot set global `include_path` in Quercus

So I voted to close this as a duplicate. But I'll leave this here in case someone else stumbles on it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM