php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37691 unexpected default umask
Submitted: 2006-06-03 23:33 UTC Modified: 2006-07-07 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: calin at action dot ro Assigned:
Status: No Feedback Package: *Directory/Filesystem functions
PHP Version: 5.1.4 OS: Redhat Linux AS4 U3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-06-03 23:33 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-05 07:47 UTC] tony2001@php.net
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-13 01:00 UTC] 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-29 20:20 UTC] calin at action dot ro
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
 [2006-06-29 20:54 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

We still know nothing about your environment and the reasons that make you think the umask has been changed by other PHP process.
 [2006-07-07 01:00 UTC] 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC