From: jackkempes at hotmail dot com Operating system: 2.6.12-1.1456_FC4smp PHP version: 5.1.2 PHP Bug Type: *Directory/Filesystem functions Bug description: file rwx
Description: ------------ copy, chmod , fopen will not work ! Reproduce code: --------------- <?php $filename='/filet/possu.txt'; if (is_writable($filename) && is_readable($filename) && is_executable($filename) ) { echo 'kirjoitus,luku ja suoritus'; $fp=fopen("$filename","w"); fwrite($fp,"paskajuttu"); fclose($fp); } else { echo 'ei voi kirjoittaa'; } ?> Expected result: ---------------- kirjoitus,luku ja suoritus Warning: fopen(/filet/possu.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/html/aja.php on line 5 Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/aja.php on line 6 Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/aja.php on line 7 -- Edit bug report at http://bugs.php.net/?id=36101&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36101&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36101&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36101&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36101&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36101&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36101&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36101&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36101&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36101&r=support Expected behavior: http://bugs.php.net/fix.php?id=36101&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36101&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36101&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36101&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36101&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36101&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36101&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36101&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36101&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36101&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36101&r=mysqlcfg