#23317 [Opn->Bgs]: fopen and touch fail in safe_mode
| From: | sniper@php.net | Date: | Wed, 23 Apr 2003 16:01:14 +0000 |
| Subject: | #23317 [Opn->Bgs]: fopen and touch fail in safe_mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38220@lists.php.net to get a copy of this message | ||
ID: 23317
Updated by: sniper@php.net
Reported By: patrick_cossette1 at uqtr dot ca
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: AIX 4.3.3
PHP Version: 4.3.1
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.
Thank you for your interest in PHP.
Just add your comments in bug #21958
Previous Comments:
------------------------------------------------------------------------
[2003-04-23 10:23:21] patrick_cossette1 at uqtr dot ca
This is be similiar to bug #21958 but not the same OS and not the same
PHP version.
With AIX 4.3.3 and PHP 4.3.1.
With safe_mode on , I cannot create a file with neither touch nor fopen
nor mkdir. (With safe_mode off, the creation works).
Apache is running under user "web" and group "web".
I have the directory /web/hee_dev whose owner is web.web with
permissions rwxr-s---
I have the script testing.php located in that directory:
<?
$fp=fopen("filetocreate","w+");
?>
If the file "filetocreate" does not already exist, I get the following
error while executing the script:
Warning: Unable to access filetocreate
in /web/hee_dev/testing.php on line 2
Warning: fopen("filetocreate", "w+") - No such
file or directory in /web/hee_dev/testing.php on
line 2
If the file already exists, I can open it without any problem.
I had read somewhere in the bug database that this should be solved by
now, but with 4.3.1, it still produces this error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23317&edit=1