From: Stig Bakken Date: Thu, 2 May 2002 23:56:44 +0000 (+0000) Subject: * add umask config value X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6ad0eee1df8e42be73c3c5146a2d1ea1d32510e;p=php * add umask config value --- diff --git a/pear/PEAR/Config.php b/pear/PEAR/Config.php index 8db9e3d298..dcc6b3e1c2 100644 --- a/pear/PEAR/Config.php +++ b/pear/PEAR/Config.php @@ -28,6 +28,7 @@ $GLOBALS['_PEAR_Config_instance'] = null; define('PEAR_CONFIG_DEFAULT_DOCDIR', PHP_DATADIR.DIRECTORY_SEPARATOR.'doc'.DIRECTORY_SEPARATOR.'pear'); +define('PEAR_DEFAULT_UMASK', umask()); // in case a --without-pear PHP installation is used if (!defined('PEAR_INSTALL_DIR')) { @@ -136,6 +137,11 @@ when installing packages without a version or state specified', 'default' => '', 'doc' => 'HTTP proxy (host:port) to use when downloading packages', ), + 'umask' => array( + 'type' => 'int', + 'default' => PEAR_DEFAULT_UMASK, + 'doc' => 'umask used when creating files (Unix-like systems only)', + ), /* 'testset1' => array( 'type' => 'set',