PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #4321

System.php -> mkDir

Details

Submitted2005-05-10 20:34 UTC
Frommarc-bennewitz at arcor dot de
StatusNo Feedback
PackagePEAR
PHP Version5.0.4
OSLinux (suse9.1)
Roadmaps(Not assigned)

Comments

[2005-05-10 20:34 UTC] marc-bennewitz at arcor dot de

Description:
------------
With using it can seem to the method System::mkDir that the rights are not set properly. Particularly, if a listing is tried nearly at the same time to put on. I have now after:

if (!call_user_func('mkdir', $newdir, $mode)) {
$ret = false;
}

still chmod inserted. With me it functions then:

if (!call_user_func('mkdir', $newdir, $mode)) {
$ret = false;
} else {
@chmod($newdir, $mode);
}

Reproduce code:
---------------
System::mkDir('-p dir');

Expected result:
----------------
drwxrwxrwx 4 wwwrun www 4096 2005-05-10 21:59 dir

Actual result:
--------------
-rw-r--r-- 4 wwwrun www 4096 2005-05-10 21:59 dir