From: [EMAIL PROTECTED] Operating system: linux 2.4.9-7 PHP version: 4.2.0 PHP Bug Type: Directory function related Bug description: odd mkdir vrs chmod fileperms
This is reproducable, though very odd. I have a script that does this: mkdir("fandelem",0777); which when I issue 'ls -la' produces: drwxr-xr-x 2 apache apache 4096 Oct 4 11:16 fandelem However when I add: chmod("fandelem",0777); which when I issue 'ls -la' produces: drwxrwxrwx 2 apache apache 4096 Oct 4 11:19 fandelem ------------- I don't really understand why -- and I guess I could just have the code do an extra chmod() but I found it quite odd that this happens. -kyle -- Edit bug report at http://bugs.php.net/?id=19757&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19757&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19757&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19757&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19757&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19757&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19757&r=support Expected behavior: http://bugs.php.net/fix.php?id=19757&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19757&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19757&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19757&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19757&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19757&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19757&r=isapi