Search code examples
phpzend-frameworkubuntuinclude-path

Include Path is overwriten by ZF


I got this little problem with PHP and Zend Framework.

I installed ZF using apt-get install libzend-framework-php which also install the binary zf.sh and the zend-framework.ini in /etc/php5/apache2/conf.d. I uncommented the line in the file which is:

[Zend]
include_path=${include_path} ":/usr/share/php/libzend-framework-php"

The problem is that this overwrite totally my include_path. Usualy, it contains /usr/share/php:/usr/share/pear.

My include_path is now only: (from the phpinfo())

include_path    :/usr/share/php/libzend-framework-php

You can see it at this link.

I would like to know what's wrong because it's very annoying!


Solution

  • Change the Zend include path to:

    include_path=${include_path} ":/usr/share/php/libzend-framework-php:/usr/share/php:/usr/share/pear"