早几天服务器升级了PHP 5.2.6版本,但随之而来,麻烦不断。在错误记录文件里面,一大堆的错误:
Warning: require_once(d:\www\web\hack/include/common.inc.php) [function.require-once]Warning: require_once(d:\www\web\hack/include/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\www\web\hackroot\index.php on line 12
Fatal error: require_once() [function.require]: Failed opening required 'd:\www\web\hack/include/common.inc.php' (include_path='.;C:\php5\pear') in D:\www\web\hackroot\index.php on line 12
服务器上面有两个网站,都是独立用户设置的权限,两个虚拟主机目录都设定单独的用户权限,分别是 d:\www\web\hack 及 d:\www\web\hackroot ,从上面两行的错误提示可以看到,两个网站的php文件在 require_one 访问时,交叉访问对方目录了。在升级php 5.2.6 之前,服务器是不存在这个问题的,php程序都没有更新过,就是把php的版本升级了。
服务器使用的是ISAPI模式,系统是 Win2003 SP2,IIS6。
文章来源
http://www.dssz.net/78526_php526 ... i-yan-zhongBug.html