From: Marcus Boerger Date: Fri, 11 May 2007 00:21:28 +0000 (+0000) Subject: - Sort commands X-Git-Tag: RELEASE_1_2_0~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40ce66bdc025ada2bb6d3b24cd0688f4d9de7134;p=php - Sort commands --- diff --git a/ext/phar/phar.php b/ext/phar/phar.php index 13bfd867ee..6fb0478c02 100644 --- a/ext/phar/phar.php +++ b/ext/phar/phar.php @@ -308,6 +308,7 @@ Commands: EOF; $l = 0; + ksort($this->cmds); foreach($this->cmds as $name => $funcs) { $l = max($l, strlen($name)); diff --git a/ext/phar/phar/clicommand.inc b/ext/phar/phar/clicommand.inc index 1bea0847c7..a2e0498662 100755 --- a/ext/phar/phar/clicommand.inc +++ b/ext/phar/phar/clicommand.inc @@ -247,6 +247,7 @@ Commands: "; $l = 0; + ksort($this->cmds); foreach($this->cmds as $name => $funcs) { $l = max($l, strlen($name));