|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-10-04 15:32 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
[2021-10-04 15:32 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
Description: ------------ Executing a code bellow for a file/directory with extended permissions (ACL) return wrong results. E.g. a file with these ACLs (display permissions using OS getfacl command): # file: file # owner: user # group: apache user::rwx group::r-x group:webmasters:rwx group:users:rwx mask::rwx other::--- The PHP code however returns 0757, which is weird (other has no permissions at all, but according fileperms it has rwx). When I clear any extended permissions, the PHP code returns expected result of 0750. Test script: --------------- <?php echo substr(decoct( fileperms("file") ) , 2); ?>