cvs: pear-core /PEAR Installer.php

From: Date: Tue, 08 Jul 2008 20:42:03 +0000
Subject: cvs: pear-core /PEAR Installer.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7615@lists.php.net to get a copy of this message
dufuz Tue Jul 8 20:42:03 2008 UTC Modified files: /pear-core/PEAR Installer.php Log: Killing the md5_file emulation, it's been around since 4.2 http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Installer.php?r1=1.253&r2=1.254&diff_format=u Index: pear-core/PEAR/Installer.php diff -u pear-core/PEAR/Installer.php:1.253 pear-core/PEAR/Installer.php:1.254 --- pear-core/PEAR/Installer.php:1.253 Tue May 13 22:46:07 2008 +++ pear-core/PEAR/Installer.php Tue Jul 8 20:42:03 2008 @@ -18,7 +18,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Installer.php,v 1.253 2008/05/13 22:46:07 cellog Exp $ + * @version CVS: $Id: Installer.php,v 1.254 2008/07/08 20:42:03 dufuz Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -552,7 +552,7 @@ $md5sum = md5($contents); } foreach ($atts as $tag => $raw) { - $tag = str_replace(array($pkg->getTasksNs() . ':', '-'), + $tag = str_replace(array($pkg->getTasksNs() . ':', '-'), array('', '_'), $tag); $task = "PEAR_Task_$tag"; $task = &new $task($this->config, $this, PEAR_TASK_INSTALL); @@ -1573,7 +1573,7 @@ if (!class_exists('PEAR_Dependency2')) { require_once 'PEAR/Dependency2.php'; } - $depchecker = &new PEAR_Dependency2($this->config, $options, + $depchecker = &new PEAR_Dependency2($this->config, $options, array('channel' => $channel, 'package' => $package), PEAR_VALIDATE_UNINSTALLING); $e = $depchecker->validatePackageUninstall($this); @@ -1706,18 +1706,4 @@ } // }}} -} - -// {{{ md5_file() utility function -if (!function_exists("md5_file")) { - function md5_file($filename) { - if (!$fd = @fopen($file, 'r')) { - return false; - } - fclose($fd); - return md5(file_get_contents($filename)); - } -} -// }}} - -?> \ No newline at end of file +} \ No newline at end of file

« previous php.pear.core (#7615) next »