#21958 [Opn]: fopen fails in safe mode

2003-02-25 Thread ct at swin dot edu dot au
 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 noticed that in safe_mode.c after the line that has
VCWD_REALPATH(filename, path); (Line 84 from CVS version) the value of
path is always NULL in Tru64 UNIX.  

The same code testing on Linux using CLI SAPI, path = correct value.


Previous Comments:


[2003-02-23 23:43:32] ct at swin dot edu dot au

The build from php4-STABLE-200302231230 still produces the same error.



[2003-02-23 05:22:27] [EMAIL PROTECTED]

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


There have been couple of fixes lately which might fix this as
side-effect, please give  it a go.




[2003-02-20 00:07:32] ct at swin dot edu dot au

I have noticied that if I replace the safe_mode.c file with the one
from PHP 4.1.2 it works properly.



[2003-02-19 22:58:01] ct at swin dot edu dot au

Apache module



[2003-02-19 21:41:30] [EMAIL PROTECTED]

I can not reproduce this with latest CVS snapshot.
What SAPI are you using? CGI..? Apache module?




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



#21958 [Opn]: fopen fails in safe mode

2003-02-19 Thread ct at swin dot edu dot au
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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