]> granicus.if.org Git - php/commitdiff
- Set some php.ini values needed by the installer
authorTomas V.V.Cox <cox@php.net>
Mon, 1 Apr 2002 16:49:19 +0000 (16:49 +0000)
committerTomas V.V.Cox <cox@php.net>
Mon, 1 Apr 2002 16:49:19 +0000 (16:49 +0000)
- Removed unused present_array() and heading() functions

pear/scripts/pear.in

index ee0ffe29a4a6814f6313be21b90ef0abe3d690f8..228c511a445dbf93a98b73c9c9133e06b95f7a4d 100644 (file)
 // +----------------------------------------------------------------------+
 //
 
+ini_set('allow_url_fopen', true);
+set_time_limit(0);
+ob_implicit_flush(true);
+ini_set('track_errors', true);
+ini_set('html_errors', false);
+
 require_once 'PEAR.php';
 require_once 'PEAR/Config.php';
 require_once 'PEAR/Command.php';
@@ -173,44 +179,6 @@ function cmdHelp($command)
     return "No such command";
 }
 
-// }}}
-// {{{ present_array()
-
-function present_array(&$arr, $keys = null)
-{
-    if ($keys === null) {
-        $keys = array_keys($arr);
-    }
-    $longest_key = max(array_map("strlen", array_keys($arr))) + 2;
-    $format_string = "%{$longest_key}s : %s\n";
-    foreach ($keys as $k) {
-        if (is_array($arr[$k])) {
-            foreach ($arr[$k] as $i => $value) {
-                $x = "$k #$i";
-                $cont = array();
-                foreach(array_keys($value) as $val) {
-                    $cont[] = "$val=" . $value[$val];
-                }
-                $v = implode(", ", $cont);
-                printf($format_string, $x, $v);
-            }
-            continue;
-        } else {
-            $v = $arr[$k];
-            printf($format_string, $k, $v);
-        }
-    }
-}
-
-// }}}
-// {{{ heading()
-
-function heading($text)
-{
-    $l = strlen(trim($text));
-    print rtrim($text) . "\n" . str_repeat("=", $l) . "\n";
-}
-
 // }}}
 
 /*