From: ipiranha at gmail dot com Operating system: FreeBSD 5.2.1-RELEASE PHP version: 4.3.9 PHP Bug Type: Filesystem function related Bug description: chmod function NOT work
Description: ------------ my freebsd box php chmod function not work. chmod ("$upload_file_name", "0777"); NOT work. # ls -al -rw-r--r-- 1 nobody nobody 159744 Sep 30 11:42 test1.txt So I was modify my source code ex) exec("chmod 0777 $upload_file_name"); # ls -al -rwxrwxrwx 1 nobody nobody 159744 Sep 30 11:44 test2.txt GOOD work. So Oops. chmod ("$upload_file_name", 0777); -> not work. chmod ($upload_file_name, 0777); -> GOOD work. why ? check this. ^^/ -- Edit bug report at http://bugs.php.net/?id=30284&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30284&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30284&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30284&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30284&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30284&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30284&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30284&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30284&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30284&r=support Expected behavior: http://bugs.php.net/fix.php?id=30284&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30284&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30284&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30284&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30284&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30284&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30284&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30284&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30284&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30284&r=mysqlcfg