Home » PEAR » PEAR » Bug #4321
System.php -> mkDir
Details
| Submitted | 2005-05-10 20:34 UTC |
|---|---|
| From | marc-bennewitz at arcor dot de |
| Status | No Feedback |
| Package | PEAR |
| PHP Version | 5.0.4 |
| OS | Linux (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