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

From: Date: Wed, 15 May 2002 18:36:02 +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-7785@lists.php.net to get a copy of this message
ID: 17229 Updated by: sander@php.net Reported By: tch@unixprogramming.net -Status: Open +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: OSX , Maybe More PHP Version: 4.2.1 New Comment: What permissions are set by PHP on the directory and what do you expect? Previous Comments: ------------------------------------------------------------------------ [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 (#7785) next »