我在我的ubuntu盒子上安装了zendframework包,发现它在/etc/php5/conf.d/zend.ini
添加了一个新的ini文件,其中包含以下内容:
[Zend]
; include_path=${include_path} ':/usr/share/php/Zend'
当我在此文件中启用该指令时,我希望得到的包含路径为:
.:/usr/share/php:/usr/share/pear:/usr/share/php/Zend
但是,我得到的只是:
:/usr/share/php/Zend
当我禁用该指令时,get_include_path()报告:
.:/usr/share/php:/usr/share/pear
这是有效的ini语法吗?为什么不起作用?
我在Ubuntu 10.04上使用PHP版本5.3.2(2011年5月3日的最后一次构建更新)。如果我能做到这一点会很棒,因为它使配置系统保持良好和模块化。
答案 0 :(得分:1)
${include_path}
很可能不包含任何内容。检查你的php.ini是否包含include_path并从那里添加你的包含路径。