#22475 [Opn->Fbk]: Include() not limited in safe mode

From: Date: Fri, 28 Feb 2003 17:00:46 +0000
Subject: #22475 [Opn->Fbk]: Include() not limited in safe mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34527@lists.php.net to get a copy of this message
ID: 22475 Updated by: iliaa@php.net 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

« previous php.bugs (#34527) next »