From:             [EMAIL PROTECTED]
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

Reply via email to