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

Zend framework Zend->;警告:is_readable()[function.is readable]:open_basedir限制生效,zend-framework,open-basedir,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/v

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

      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
问题是什么?它会在我的应用程序的部署和生产阶段导致问题吗


谢谢

open\u basedir设置为php在安全模式下运行。它将您限制为列表中指定的文件夹。这可能有助于:


是的,如果您想访问默认文件夹之外的文件,您需要在任何服务器上更改它。

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

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

set_include_path(
APPLICATION_PATH.'/../library'.PATH_SEPARATOR.
APPLICATION_PATH.'/../library/Zend'
);

open_basedir不是安全模式指令。至少对于>5.2.x