]> granicus.if.org Git - php/commitdiff
- Sort commands
authorMarcus Boerger <helly@php.net>
Fri, 11 May 2007 00:21:28 +0000 (00:21 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 11 May 2007 00:21:28 +0000 (00:21 +0000)
ext/phar/phar.php
ext/phar/phar/clicommand.inc

index 13bfd867eef0e3b4db1f227c31d63de19086802e..6fb0478c02accb918ff9dfa1c0da9600818ea3da 100644 (file)
@@ -308,6 +308,7 @@ Commands:
 
 EOF;
                        $l = 0;
+                       ksort($this->cmds);
                        foreach($this->cmds as $name => $funcs)
                        {
                                $l = max($l, strlen($name));
index 1bea0847c7da20c15021c8d011e9ba1cee0c47bd..a2e0498662badc6a793a172158523d0f6ccd3b6d 100755 (executable)
@@ -247,6 +247,7 @@ Commands:
 
 ";
                $l = 0;
+               ksort($this->cmds);
                foreach($this->cmds as $name => $funcs)
                {
                        $l = max($l, strlen($name));