|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-06-20 15:56 UTC] agiorg at gmail dot com
Description:
------------
We are actually testing the DirectoryIterator class (we're joining the TestFest). So, the virtual machine we're working on runs PHP 5.3.0RC3.
After creating a new folder, both using mkdir or shell_exec('mkdir'), getPerms doesn't returns right perms (we checked out straightly on the shell and the permissions were as expected).
Reproduce code:
---------------
mkdir('test', 0744);
$dir=new DirectoryIterator('test');
var_dump(decoct($dir->getPerms()));
Expected result:
----------------
string(5) "40744"
Actual result:
--------------
string(5) "40755"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 13 18:00:01 2025 UTC |
tested code: <?php mkdir('/tmp/test', 0744); $dir=new DirectoryIterator('/tmp/test'); var_dump(decoct($dir->getPerms())); ?> ------- returns 41777 ------- OS: Debian Lenny (unstable) PHP Version: PHP 5.3.0RC4