From 750ca4295e711a78c9dfbbbecfa992e52038c6e6 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Mon, 1 Apr 2002 19:17:59 +0000 Subject: [PATCH] typo --- pear/PEAR/Command/Install.php | 2 +- pear/PEAR/Packager.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pear/PEAR/Command/Install.php b/pear/PEAR/Command/Install.php index a458f69a79..cb75a30592 100644 --- a/pear/PEAR/Command/Install.php +++ b/pear/PEAR/Command/Install.php @@ -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; } diff --git a/pear/PEAR/Packager.php b/pear/PEAR/Packager.php index f21192dac7..e1a6f82312 100644 --- a/pear/PEAR/Packager.php +++ b/pear/PEAR/Packager.php @@ -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; } } -- 2.50.1