From: Christian Dickmann Date: Tue, 7 Jan 2003 23:12:06 +0000 (+0000) Subject: fix default umask(); (thx to Mirco MEEBEY Bauer for bringing this behavior to my... X-Git-Tag: PHP_5_0_dev_before_13561_fix~387 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26e393c69fc106a2ab6b92e8f74189c2ac6f894d;p=php fix default umask(); (thx to Mirco MEEBEY Bauer for bringing this behavior to my attention and testing the patch) --- diff --git a/pear/PEAR/Config.php b/pear/PEAR/Config.php index b1292eefeb..28584b9a74 100644 --- a/pear/PEAR/Config.php +++ b/pear/PEAR/Config.php @@ -142,7 +142,7 @@ if (isset($_ENV['PHP_PEAR_PREFERRED_STATE'])) { if (isset($_ENV['PHP_PEAR_UMASK'])) { define('PEAR_CONFIG_DEFAULT_UMASK', $_ENV['PHP_PEAR_UMASK']); } else { - define('PEAR_CONFIG_DEFAULT_UMASK', umask()); + define('PEAR_CONFIG_DEFAULT_UMASK', decoct(umask())); } // Default for cache_ttl