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

2024-03-04

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

      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

问题是什么?它会导致我的应用程序的部署和生产阶段出现问题吗?

谢谢


出现此消息是因为从 Zend FW 1.10.1 开始,自动加载器以不同的方式创建这些文件的路径。您可以在这里找到更多信息:Zend 固件错误报告 http://framework.zend.com/issues/browse/ZF-9263

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

set_include_path(
APPLICATION_PATH.'/../library'.PATH_SEPARATOR.
APPLICATION_PATH.'/../library/Zend'
);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Zend -> 警告:is_read() [function.is-read]: open_basedir 限制生效 的相关文章

随机推荐