[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-bugs
Subject: [DOC-BUGS] Doc #79915 [Opn]: Explanation about umask parameter
From: requinix () php ! net
Date: 2020-07-30 18:39:47
Message-ID: E1k1DT1-0001V1-CB () bugs ! php ! net
[Download RAW message or body]
Edit report at https://bugs.php.net/bug.php?id=79915&edit=1
ID: 79915
Updated by: requinix@php.net
Reported by: petra dot bertova at gmail dot com
-Summary: umask parameter
+Summary: Explanation about umask parameter
Status: Open
Type: Documentation Problem
-Package: Unknown/Other Function
+Package: Filesystem function related
Operating System: ubuntu
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
As stated in the top comment, umask is about revoking permissions, not granting them. \
This is how the standard umask(2) works. \
https://man7.org/linux/man-pages/man2/umask.2.html
Previous Comments:
------------------------------------------------------------------------
[2020-07-30 11:11:02] petra dot bertova at gmail dot com
Description:
------------
---
From manual page: https://php.net/function.umask
---
Umask function seems to accept parameter in reverse binary code.
Full access is not umask(0777), but umask(0000)
-rwxrwx--- is not umask(0770), but umask(0007)
-rwxrwxr-x is not umask(0775), but umask(0003)
Please, update documentation and add more examples.
Actual result:
--------------
When I write
umask(0777)
I have no permissions to a directory/file
When I write
umask(03)
I have -rwxrwxr-x permissions to a directory/file
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79915&edit=1
--
PHP Documentation Bugs Mailing List (https://www.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic