#23317 [NEW]: fopen and touch fail in safe_mode
| From: | patrick_cossette1 at uqtr dot ca | Date: | Wed, 23 Apr 2003 15:23:21 +0000 |
| Subject: | #23317 [NEW]: fopen and touch fail in safe_mode | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-38218@lists.php.net to get a copy of this message | ||
From: patrick_cossette1 at uqtr dot ca
Operating system: AIX 4.3.3
PHP version: 4.3.1
PHP Bug Type: Filesystem function related
Bug description: fopen and touch fail in safe_mode
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 bug report at http://bugs.php.net/?id=23317&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23317&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23317&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23317&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23317&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23317&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23317&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23317&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23317&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23317&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23317&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23317&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23317&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23317&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23317&r=gnused