]> granicus.if.org Git - php/commitdiff
* add umask config value
authorStig Bakken <ssb@php.net>
Thu, 2 May 2002 23:56:44 +0000 (23:56 +0000)
committerStig Bakken <ssb@php.net>
Thu, 2 May 2002 23:56:44 +0000 (23:56 +0000)
pear/PEAR/Config.php

index 8db9e3d2980c2b627046ce63246e254e295e1161..dcc6b3e1c2510ff6fa628ca9db97fddc62cc9ca1 100644 (file)
@@ -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',