Zend - >警告:is_readable()[function.is-readable]:open_basedir限制生效

Ami*_*r s 4 zend-framework open-basedir

我在代码中收到以下警告:

      Warning: is_readable() [function.is-readable]: open_basedir restriction in effect.   File(/usr/share/php/./views/helpers/Doctype.php) is not within the allowed path(s): (/var/www/virtual/example.com/:/usr/share/pear/) in /var/www/virtual/example.com/htdocs/rockhopper-v2/library/Zend/Loader.php on line 198

or

      Warning: is_readable() [function.is-readable]: open_basedir restriction in effect.   File(/usr/share/php//var/www/virtual/example.com/htdocs/rockhopper-v2/application/modules/default/views/helpers/Layout.php) is not within the allowed path(s): (/var/www/virtual/example.com/:/usr/share/pear/) in /var/www/virtual/example.com/htdocs/rockhopper-v2/library/Zend/Loader.php on line 198
Run Code Online (Sandbox Code Playgroud)

问题是什么,它会在我的应用程序的部署和生产阶段引起问题吗?

谢谢

Raf*_*ger 16

出现此消息是因为自Zend FW 1.10.1以来,自动加载器以不同方式创建这些文件的路径.您可以在此处找到更多信息:Zend FW Bug Report

要删除此消息,您可以编辑文件index.php并将set_include_path更改为:

set_include_path(
APPLICATION_PATH.'/../library'.PATH_SEPARATOR.
APPLICATION_PATH.'/../library/Zend'
);
Run Code Online (Sandbox Code Playgroud)