[PHP-DEV] Bug #592: show_source problems in SAFE_MODE From: daniele <email protected>
Date: 07/28/98

From: daniele <email protected>
Operating system: RedHat Linux 5.1, Kernel 2.0.35
PHP version: 3.0.2a
PHP Bug Type: Misbehaving function
Bug description:
I'm trying to mirror php3 web site, all works fine, except for the "Source" button in pages outside the root directory.
It seems that calling show_source with an absolute pathname conflicts with safe_mode.

This is the result of calling show_source("/mystuff/news.php3") and show_source("/www/www.xt.net/htdocs/mystuff/news.php3") from a file called /www/www.xt.net/htdocs/query_telecom.php3

Warning: SAFE MODE Restriction in effect. Invalid owner. in /www/www.xt.net/htdocs/query_telecom.php3 on line 11
Fatal error: Failed opening required '/mystuff/news.php3' in /www/www.xt.net/htdocs/query_telecom.php3 on line 11

Warning: SAFE MODE Restriction in effect. Invalid owner. in /www/www.xt.net/htdocs/query_telecom.php3 on line 11
Fatal error: Failed opening required '/www/www.xt.net/htdocs/mystuff/news.php3' in /www/www.xt.net/htdocs/query_telecom.php3 on line 11

Calling show_source("mystuff/news.php3") or show_source("query_telecom.php3") works fine.