]> granicus.if.org Git - php/commitdiff
typo
authorTomas V.V.Cox <cox@php.net>
Mon, 1 Apr 2002 19:17:59 +0000 (19:17 +0000)
committerTomas V.V.Cox <cox@php.net>
Mon, 1 Apr 2002 19:17:59 +0000 (19:17 +0000)
pear/PEAR/Command/Install.php
pear/PEAR/Packager.php

index a458f69a79bb92efa1c6f97176e3d070d7f0f660..cb75a30592c2ac310bbb2ad6bd75fb5363a56f57 100644 (file)
@@ -77,7 +77,7 @@ class PEAR_Command_Install extends PEAR_Command_Common
         $ret[1] = "{$ret[1]}\n" .
                   "   -f    forces the installation of the package\n".
                   "         when it is already installed\n".
-                  "   -n    do not take care package dependencies";
+                  "   -n    do not take care of package dependencies";
         return $ret;
     }
 
index f21192dac7b8c941b97a9ccf5f08f6ee3970a823..e1a6f82312af0b156c65b496451a858c799bdde4 100644 (file)
@@ -145,11 +145,13 @@ class PEAR_Packager extends PEAR_Common
 }
 
 if (!function_exists('md5_file')) {
-    function &md5_file($file) {
+    function md5_file($file) {
         if (!$fd = @fopen($file, 'r')) {
             return false;
         }
-        return md5(fread($fd, filesize($file)));
+        $md5 = md5(fread($fd, filesize($file)));
+        fclose($fd);
+        return $md5;
     }
 }