Bug #17229: Permissions set incorrectly on newly created directories.
| From: | tch at unixprogramming dot net | Date: | Wed, 15 May 2002 00:01:37 +0000 |
| Subject: | Bug #17229: Permissions set incorrectly on newly created directories. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-7699@lists.php.net to get a copy of this message | ||
From: tch@unixprogramming.net
Operating system: OSX , Maybe More
PHP version: 4.2.1
PHP Bug Type: *Directory/Filesystem functions
Bug description: Permissions set incorrectly on newly created directories.
<?
$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 bug report at http://bugs.php.net/?id=17229&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17229&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17229&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17229&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17229&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17229&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17229&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17229&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17229&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17229&r=globals