summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/scripts/pear.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in
index d075a8d449..6e0fa3ef29 100644
--- a/pear/scripts/pear.in
+++ b/pear/scripts/pear.in
@@ -24,7 +24,9 @@
/**
* @nodep Gtk
*/
-ini_set('include_path', '@include_path@');
+if ('@include_path@' != '@'.'include_path'.'@') {
+ ini_set('include_path', '@include_path@');
+}
ini_set('allow_url_fopen', true);
set_time_limit(0);
ob_implicit_flush(true);
@@ -203,6 +205,7 @@ function usage($error = null, $helpsubject = null)
"Commands:\n";
$maxlen = max(array_map("strlen", $all_commands));
$formatstr = "%-{$maxlen}s %s\n";
+ ksort($all_commands);
foreach ($all_commands as $cmd => $class) {
$put .= sprintf($formatstr, $cmd, PEAR_Command::getDescription($cmd));
}