繁体   English   中英

在树脂中,即使我更改了它,使用PHP的include_path指令也默认为/ usr / share / php?

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

这是我在php.ini中添加的行

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

我没有echo "Include Path: ". get_include_path(); echo "Include Path: ". get_include_path();

这是输出

Include Path: .:/usr/share/php

我使用正确的php.ini的phpinfo()确认了它,但是未更新路径。

ed1:我什至将路径简化为2条路径,但仍然没有更新。 (我也每次都重新启动树脂)

ed2:绝对正确的文件,例如,如果我更改其他设置并执行echo ini_get('display_errors') ,我可以看到它已更改。 那么,包含路径是怎么回事?

ed3:为确保它不是格式错误的uri或其他内容,我只使用了1条路径,但仍然无法使用。

谢谢,

我发现一个重复的问题。

无法在Quercus中设置全局`include_path`

因此,我投票决定将其作为副本关闭。 但是我将其留在这里,以防其他人偶然发现。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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