这是我在 php.ini 中添加的行
include_path = "/usr/share/php/smarty:/usr/share/php5:/usr/share/php:/usr/share/php/pear"
我做了echo "Include Path: ". get_include_path();
这是输出
Include Path: .:/usr/share/php
我确认它phpinfo()
用于正确的 php.ini,但路径没有被更新。
ed1:我什至将路径简化为 2 条路径,但仍然没有更新。(我每次都在重新启动树脂)
ed2:绝对是正确的文件,如果我更改其他设置并做一个echo ini_get('display_errors')
例如,我可以看到它发生了变化。那么,包含路径是怎么回事?
ed3:为了确保它不是格式错误的 uri 或其他东西,我只使用了 1 条路径,但它仍然无法正常工作。
谢谢,