[英]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 这是我在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();
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. 我使用正确的php.ini的
phpinfo()
确认了它,但是未更新路径。
ed1: I even simplified the path to just 2 paths, still doesn't update. ed1:我什至将路径简化为2条路径,但仍然没有更新。 (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. ed2:绝对正确的文件,例如,如果我更改其他设置并执行
echo ini_get('display_errors')
,我可以看到它已更改。 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. ed3:为确保它不是格式错误的uri或其他内容,我只使用了1条路径,但仍然无法使用。
Thanks, 谢谢,
I found a duplicate question. 我发现一个重复的问题。
Cannot set global `include_path` in Quercus 无法在Quercus中设置全局`include_path`
So I voted to close this as a duplicate. 因此,我投票决定将其作为副本关闭。 But I'll leave this here in case someone else stumbles on it.
但是我将其留在这里,以防其他人偶然发现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.