From: Tomas V.V.Cox Date: Mon, 1 Apr 2002 16:49:19 +0000 (+0000) Subject: - Set some php.ini values needed by the installer X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~930 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=def4a8485d4674cf2bb54df298c67f56ae5d1cd0;p=php - Set some php.ini values needed by the installer - Removed unused present_array() and heading() functions --- diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index ee0ffe29a4..228c511a44 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -19,6 +19,12 @@ // +----------------------------------------------------------------------+ // +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"; -} - // }}} /*