我在PHP和Zend Framework中遇到了这个小问题。包含路径被ZF覆盖
我使用apt-get install libzend-framework-php
安装ZF,它也安装二进制zf.sh
和zend-framework.ini
在/etc/php5/apache2/conf.d
。我取消注释该文件中的行是:
[Zend]
include_path=${include_path} ":/usr/share/php/libzend-framework-php"
问题是这个覆盖完全是我的include_path。 Usualy,它包含/usr/share/php:/usr/share/pear
。
我的include_path现在只有:(从phpinfo()函数)
include_path :/usr/share/php/libzend-framework-php
您可以在this link看到它。
我想知道什么是错的,因为它非常烦人!
您是否尝试过将原来包括目录切换到了Zend-framework.ini线? – 2013-04-04 07:44:13
是的,但我不想这样...我想能够逐一添加路径。很快,我将添加ZF2路径和ZendX_路径。 – 2013-04-04 21:33:18