#35744 [Fbk->Opn]: safe_mode error?

From: Date: Tue, 20 Dec 2005 14:34:59 +0000
Subject: #35744 [Fbk->Opn]: safe_mode error?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90722@lists.php.net to get a copy of this message
 ID:               35744
 User updated by:  rudenko at id dot com dot ua
 Reported By:      rudenko at id dot com dot ua
-Status:           Feedback
+Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Fedora Core 3
 PHP Version:      5.1.1
 New Comment:

If I use your script I have same results as yours.
bool(true)
bool(true)
bool(true)


Previous Comments:
------------------------------------------------------------------------

[2005-12-20 15:26:47] tony2001@php.net

#php -d safe_mode=1 -r 'var_dump(ini_get("safe_mode"));
var_dump(is_file("/etc/passwd")); var_dump(file_exists("/etc/passwd"));
var_dump(is_readable("/etc/passwd"));'
string(1) "1"
bool(true)
bool(true)
bool(true)

# whoami
root

PHP 5.0.6-dev
PHP 5.1.2-dev
PHP 4.4.2RC2-dev

------------------------------------------------------------------------

[2005-12-20 15:14:50] rudenko at id dot com dot ua

I reproduce same bug on FreeBSD 6 server.

1. In your php.ini file you must set safe_mode = On
2. You must start script from shell

------------------------------------------------------------------------

[2005-12-20 15:03:26] tony2001@php.net

I'm still unable to reproduce it.

------------------------------------------------------------------------

[2005-12-20 14:57:56] rudenko at id dot com dot ua

Installing latest snapshot 2005-12-20 11:30 does not solve this problem

------------------------------------------------------------------------

[2005-12-20 13:58:43] tony2001@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip

Can't reproduce.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35744

-- 
Edit this bug report at http://bugs.php.net/?id=35744&edit=1


Thread (8 messages)

« previous php.bugs (#90722) next »