#17229 [Fbk->Bgs]: Permissions set incorrectly on newly created directories.

From: Date: Wed, 11 Sep 2002 16:07:22 +0000
Subject: #17229 [Fbk->Bgs]: Permissions set incorrectly on newly created directories.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19087@lists.php.net to get a copy of this message
ID: 17229 Updated by: sniper@php.net Reported By: tch@unixprogramming.net -Status: Feedback +Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: OSX , Maybe More PHP Version: 4.2.1 New Comment: user error. Previous Comments: ------------------------------------------------------------------------ [2002-06-09 01:19:34] darkelder@php.net Sorry for my comment. I take a look on my umask and undestand why my directory isn't created at 0777. ------------------------------------------------------------------------ [2002-06-09 01:13:03] darkelder@php.net I have the same problem. mkdir second param doesnt work. <?PHP mkdir ("some",0777); ?> at posix, sure, will create "some" directory without 0777 chmod. So, I need do a chmod("some",0777). ------------------------------------------------------------------------ [2002-05-15 14:36:02] sander@php.net What permissions are set by PHP on the directory and what do you expect? ------------------------------------------------------------------------ [2002-05-14 20:01:37] tch@unixprogramming.net <? $basedir = "./mkdirtests/"; $newdir = "foo"; $fullpath = $basedir . $newdir; $lscmd = "/bin/ls -al $basedir"; ?> <p>Making directory "./foo" with a umask of 0000<br> <? $oldumask = umask(0000); mkdir ($fullpath, 0700); umask($oldumask); ?> <p>Listing <?="$lscmd"?>:<br> <pre> <? passthru( "$lscmd"); ?> </pre> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17229&edit=1

« previous php.bugs (#19087) next »