本文介绍了Zend ->警告:is_readable() [function.is-readable]:open_basedir 限制生效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的代码中收到以下警告:
I am getting the following warning in my code:
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
问题是什么,它会在我的应用程序的部署和生产阶段导致问题吗?
what is the problem and will it cause problems in deployment and production stage of my application?
谢谢
推荐答案
出现此消息是因为自 Zend FW 1.10.1 以来,自动加载器以不同方式创建这些文件的路径.您可以在此处找到更多信息:Zend FW 错误报告
This message appears because since Zend FW 1.10.1 the autoloader creates the path to those files differently. You can find some more information here: Zend FW Bug Report
要删除此消息,您可以编辑文件 index.php 并将 set_include_path 更改为:
To get rid of this message you can edit the file index.php and change the set_include_path to this:
set_include_path(
APPLICATION_PATH.'/../library'.PATH_SEPARATOR.
APPLICATION_PATH.'/../library/Zend'
);
这篇关于Zend ->警告:is_readable() [function.is-readable]:open_basedir 限制生效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!