#21958 [Opn]: fopen fails in safe mode

From: Date: Thu, 20 Feb 2003 06:07:32 +0000
Subject: #21958 [Opn]: fopen fails in safe mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33634@lists.php.net to get a copy of this message
ID: 21958 User updated by: ct at swin dot edu dot au Reported By: ct at swin dot edu dot au Status: Open Bug Type: Filesystem function related Operating System: Tru64 UNIX 5.1A PHP Version: 4.3.1-dev New Comment: I have noticied that if I replace the safe_mode.c file with the one from PHP 4.1.2 it works properly. Previous Comments: ------------------------------------------------------------------------ [2003-02-19 22:58:01] ct at swin dot edu dot au Apache module ------------------------------------------------------------------------ [2003-02-19 21:41:30] sniper@php.net I can not reproduce this with latest CVS snapshot. What SAPI are you using? CGI..? Apache module? ------------------------------------------------------------------------ [2003-02-19 19:03:33] ct at swin dot edu dot au # ls -ld /web /web/ct drwxr-xr-x 110 root system 8192 Nov 28 15:41 /web drwxr-xr-x 7 ct system 8192 Jan 31 15:22 /web/ct ------------------------------------------------------------------------ [2003-02-19 18:57:04] sniper@php.net What are the permissions for /web and /web/ct directories? ------------------------------------------------------------------------ [2003-01-30 18:49:02] ct at swin dot edu dot au With php4-STABLE-latest (200301302230) it returns the following error: Warning: fopen() [function.fopen]: Unable to access /web/ct/tmp/file.txt in /web/ct/test4.php on line 4 Warning: fopen(/web/ct/tmp/file.txt) [function.fopen]: failed to create stream: No such file or directory in /web/ct/test4.php on line 4 ------------------------------------------------------------------------ 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/21958 -- Edit this bug report at http://bugs.php.net/?id=21958&edit=1

« previous php.bugs (#33634) next »