cvs: php4 /pear/scripts pear.in
| From: | Tomas V.V.Cox | Date: | Mon, 01 Apr 2002 16:49:19 +0000 |
| Subject: | cvs: php4 /pear/scripts pear.in | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2944@lists.php.net to get a copy of this message | ||
cox Mon Apr 1 11:49:19 2002 EDT
Modified files:
/php4/pear/scripts pear.in
Log:
- Set some php.ini values needed by the installer
- Removed unused present_array() and heading() functions
Index: php4/pear/scripts/pear.in
diff -u php4/pear/scripts/pear.in:1.35 php4/pear/scripts/pear.in:1.36
--- php4/pear/scripts/pear.in:1.35 Mon Apr 1 09:35:08 2002
+++ php4/pear/scripts/pear.in Mon Apr 1 11:49:19 2002
@@ -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';
@@ -171,44 +177,6 @@
return "Usage : $progname $command {$help[0]}\n{$help[1]}";
}
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";
}
// }}}