当Zend在包含路径中时,不能要求Zend/Config/Ini


Cannot require Zend/Config/Ini when Zend is in the include path?

当我尝试这个时:

require_once 'Zend/Config/Ini.php';

我在Zend框架应用程序中得到这个错误:

Warning: require_once(Zend/Config/Ini.php) [function.require-once]: failed to open stream: No such file or directory in /path/to/functions.php on line 408

当我打印出包含路径时,它是:

string(101) "/path/to/www/app/modules/:/path/to/www/lib/:.:/usr/local/share/pear"

我有ZF库在/path/to/www/lib/文件夹,所以wtf?

问题解决了:

chmod -R 755 /path/to/www/lib

啊呀!