Commit:    ad7a1e4401ebbf9623c821d9b94ba31bd05f31b5
Author:    Christoph M. Becker <cmbecke...@gmx.de>         Thu, 31 Jan 2019 
14:54:20 +0100
Parents:   75c94377e902a0604dd867b585e9ecba7abcbba7
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=ad7a1e4401ebbf9623c821d9b94ba31bd05f31b5

Log:
MD5 checksums are gone

Changed paths:
  M  mirror-info.php


Diff:
diff --git a/mirror-info.php b/mirror-info.php
index dac628b..72e7733 100644
--- a/mirror-info.php
+++ b/mirror-info.php
@@ -11,7 +11,7 @@ header("Content-type: text/plain; charset=utf-8");
 // Provide information on local stats setup
 $mirror_stats = (int) (isset($_SERVER['MIRROR_STATS']) && 
$_SERVER['MIRROR_STATS'] == '1');
 
-// SHA256/MD5 check last release file (identifies rsync setup problems)
+// SHA256 check last release file (identifies rsync setup problems)
 $filename = $_SERVER['DOCUMENT_ROOT'] . '/distributions/' . 
$RELEASES[7][$PHP_7_3_VERSION]["source"][0]["filename"];
 if (!file_exists($filename)) {
        $hash_ok = 0;
@@ -19,8 +19,6 @@ if (!file_exists($filename)) {
                function_exists('hash_file') &&
                in_array('sha256', hash_algos(), true)) {
        $hash_ok = (int)(hash_file('sha256', $filename) === 
$PHP_7_3_SHA256["tar.bz2"]);
-} elseif (isset($PHP_7_3_MD5["tar.bz2"])) {
-       $hash_ok = (int)(md5_file($filename) === $PHP_7_3_MD5["tar.bz2"]);
 } else {
        $hash_ok = 0;
 }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to