From: [EMAIL PROTECTED] Operating system: Tru64 UNIX 5.1A PHP version: 4.2.3 PHP Bug Type: Filesystem function related Bug description: fopen fails in safe mode
PHP 4.2.3 configured in safe mode cannot create new files. $fname = "/web/ct/tmp/file.txt"; $filePtr = fopen($fname,"w"); Warning: Unable to access /web/ct/tmp/file.txt in /web/ct/test4.php on line 4 Warning: fopen("/web/ct/tmp/file.txt", "w") - No such file or directory in /web/ct/test4.php on line 4 The permissions on the directory are: drwxrwxrwx 2 root system 8192 Jan 30 16:42 tmp If the file /web/ct/tmp/file.txt already exists, PHP can open it for writing. PHP 4.1.2 can successfully create files using the same configuration. -- Edit bug report at http://bugs.php.net/?id=21958&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21958&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21958&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21958&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21958&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21958&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21958&r=support Expected behavior: http://bugs.php.net/fix.php?id=21958&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21958&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21958&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21958&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21958&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21958&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21958&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21958&r=gnused