我在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