ID: 22475 Updated by: [EMAIL PROTECTED] Reported By: oliver at summertime dot net -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Linux PHP Version: 4.3.0 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Unable to replicate with latest CVS. Previous Comments: ------------------------------------------------------------------------ [2003-02-28 07:17:12] oliver at summertime dot net Hi, in PHP 4.2.2 I get the following error when I want to include '/etc/passwd': Warning: SAFE MODE Restriction in effect. The script whose uid is 500 is not allowed to access /etc/passwd owned by uid 0 in /home/httpd/htdocs/i.php on line 4 Warning: Failed opening '/etc/passwd' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/htdocs/i.php on line 4 I just upgraded to PHP 4.3.0 and the file will be included without any error message! readfile() performs right: Warning: readfile() [function.readfile]: SAFE MODE Restriction in effect. The script whose uid is 500 is not allowed to access /etc/passwd owned by uid 0 in /home/httpd/htdocs/i.php on line 4 Warning: readfile(/etc/passwd) [function.readfile]: failed to create stream: Inappropriate ioctl for device in /home/httpd/htdocs/i.php on line 4 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22475&edit=1