Php 包含路径被ZF覆盖
我在PHP和Zend框架中遇到了这个小问题 我使用Php 包含路径被ZF覆盖,php,zend-framework,ubuntu,include-path,Php,Zend Framework,Ubuntu,Include Path,我在PHP和Zend框架中遇到了这个小问题 我使用apt get install libzend framework php安装了ZF,它还安装了/etc/php5/apache2/conf.d中的二进制ZF.sh和zend framework.ini。我取消了文件中的行注释,该行为: [Zend] include_path=${include_path} ":/usr/share/php/libzend-framework-php" 问题是这会完全覆盖我的include\u路径。通常,它包含
apt get install libzend framework php
安装了ZF,它还安装了/etc/php5/apache2/conf.d
中的二进制ZF.sh
和zend framework.ini
。我取消了文件中的行注释,该行为:
[Zend]
include_path=${include_path} ":/usr/share/php/libzend-framework-php"
问题是这会完全覆盖我的include\u路径。通常,它包含/usr/share/php:/usr/share/pear
我的include_路径现在仅为:(来自phpinfo())
你可以在电视上看到它
我想知道怎么了,因为这很烦人 将Zend include路径更改为:
include_path=${include_path} ":/usr/share/php/libzend-framework-php:/usr/share/php:/usr/share/pear"
您是否尝试过将原始的include目录添加到zend-framework.ini行中?是的,但我不希望这样。。。我希望能够一个接一个地添加路径。很快,我将添加ZF2路径和ZendX_uuPath。我会这样做,但正如我在上面的评论中所解释的,我希望能够通过添加
.ini
文件来添加路径。。。与多次编辑相同的内容不同…很抱歉回复太晚,请将php.ini更改为:“include_path=“.:/usr/share/php/libzend framework php:/usr/share/php:/usr/share/pear”,并从Zend配置中删除该行。
include_path=${include_path} ":/usr/share/php/libzend-framework-php:/usr/share/php:/usr/share/pear"