Bug #17229 Updated: Permissions set incorrectly on newly created directories.

From: Date: Sun, 09 Jun 2002 05:15:06 +0000
Subject: Bug #17229 Updated: Permissions set incorrectly on newly created directories.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9898@lists.php.net to get a copy of this message
ID: 17229 Updated by: darkelder@php.net Reported By: tch@unixprogramming.net Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: OSX , Maybe More PHP Version: 4.2.1 Previous Comments: ------------------------------------------------------------------------ [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 (#9898) next »