#37691 [NEW]: unexpected default umask
From: calin at action dot ro
Operating system: Redhat Linux AS4 U3
PHP version: 5.1.4
PHP Bug Type: *Directory/Filesystem functions
Bug description: unexpected default umask
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 bug report at http://bugs.php.net/?id=37691&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37691&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37691&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37691&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37691&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37691&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37691&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37691&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37691&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37691&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37691&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37691&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37691&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37691&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37691&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37691&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37691&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37691&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37691&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37691&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37691&r=mysqlcfg
Thread (4 messages)
- calin at action dot ro