From: postmaster at rrnet dot se Operating system: Slackware 9.1 PHP version: 4.3.4 PHP Bug Type: Filesystem function related Bug description: PHP chmod's totaly wrong
Description: ------------ PHP have some strange problem, to set file-permissions on my machine (Slackware 9.1). It sets them totaly wrong. Software is PHP 4.3.4 on Apache 1.3.29. Filesystem is ext3. PHP is NOT in safe_mode. Nothing more specific to report. Reproduce code: --------------- $file = "/home/dream/public_html/Upic/1/2.jpg"; chmod($file,'0644'); the same result happened with chmod($file,'644'); Expected result: ---------------- -rw-r--r-- 1 nobody nobody 28739 Mar 31 08:30 2.jpg Actual result: -------------- --w----r-T 1 nobody nobody 28739 Mar 31 08:30 2.jpg -- Edit bug report at http://bugs.php.net/?id=27790&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27790&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27790&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27790&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27790&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27790&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27790&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27790&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27790&r=support Expected behavior: http://bugs.php.net/fix.php?id=27790&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27790&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27790&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27790&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27790&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27790&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27790&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27790&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27790&r=float