]> granicus.if.org Git - php/commitdiff
- Add 'Stub-size' to info command
authorMarcus Boerger <helly@php.net>
Mon, 28 May 2007 16:00:41 +0000 (16:00 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 28 May 2007 16:00:41 +0000 (16:00 +0000)
ext/phar/phar/pharcommand.inc

index e8768c9ed6ec558874dcc372a8563a942199b017..4497802a75d09f36e976e546fff95898e32167e8 100755 (executable)
@@ -1331,6 +1331,7 @@ class PharCommand extends CLICommand
         $infos['Compression-ratio']  = sprintf('%.3g%%', ($csize * 100) / $usize);
         $infos['Metadata-global']    = $phar->hasMetadata() * 1;
         $infos['Metadata-files']     = $mcount;
+        $infos['Stub-size']          = strlen($phar->getStub());
 
         if (isset($index)) {
             if (!isset($infos[$index])) {