ID: 37691 User updated by: calin at action dot ro Reported By: calin at action dot ro -Status: No Feedback +Status: Open Bug Type: *Directory/Filesystem functions Operating System: Redhat Linux AS4 U3 PHP Version: 5.1.4 New Comment:
The umask that is set for apache environment is 022. I would expect that environmental settings for apache to be used by php processes so the default umask for a php process to be 18 (22 octal) I would expect that this default umask not to be influenced by umask alteration by other php processes. Thanks Previous Comments: ------------------------------------------------------------------------ [2006-06-13 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-06-05 07:47:32] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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