#37691 [Opn->Fbk]: unexpected default umask
| From: | tony2001@php.net | Date: | Mon, 05 Jun 2006 07:47:32 +0000 |
| Subject: | #37691 [Opn->Fbk]: unexpected default umask | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98023@lists.php.net to get a copy of this message | ||
ID: 37691
Updated by: tony2001@php.net
Reported By: calin at action dot ro
-Status: Open
+Status: Feedback
Bug Type: *Directory/Filesystem functions
Operating System: Redhat Linux AS4 U3
PHP Version: 5.1.4
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2006-06-03 23:33:53] calin at action dot ro
Description:
------------
Hello!
I am using PHP compiled as DSO.
Echoing the umask() I get 79 (117 octal).
My system sets the 0022 mask for the apache environment.
How can this default mask be set globaly for the server environment
(php.ini?) ?
Maybe related to #36630??? (even though bug is marked as closed)
Reproduce code:
---------------
echo umask();
Expected result:
----------------
18
which will be 22 octal because the environment in which apache runs has
0022 mask
AND
clear explanations in documentation on how php gets it's default mask
settings
Actual result:
--------------
the output of echo command:
79
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37691&edit=1