From 309d295271f95d9267c64535de8c2e638f6614cc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 1 Apr 2019 14:38:56 +0200 Subject: [PATCH] update php mirrors --- Makefile | 8 ++++---- php-version-url-dist.php | 2 +- php-version-url-qa.php | 2 +- php-version.php | 9 ++++++--- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 2ccac0f..6630634 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ export PHP ?= 7.3 JOBS ?= 2 -PHP_MIRROR ?= http://php.net/distributions/ +PHP_MIRROR ?= https://php.net/distributions/ TMPDIR ?= /tmp makdir := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) @@ -62,9 +62,9 @@ versions: $(PHP_RELEASES) $(PHP_RELEASES): $(makdir)/php-version-url-dist.php $(makdir)/php-version-url-qa.php | $(srcdir) cd $(makdir) && printf "master\tmaster\t%s/fetch-master.sh\n" $$(pwd) >$@ - curl -Ss "http://php.net/releases/index.php?json&version=7&max=-1" | $(makdir)/php-version-url-dist.php >>$@ - curl -Ss "http://php.net/releases/index.php?json&version=5&max=-1" | $(makdir)/php-version-url-dist.php >>$@ - curl -Ss "http://qa.php.net/api.php?type=qa-releases&format=json" | $(makdir)/php-version-url-qa.php >>$@ + curl -sSL "https://php.net/releases/index.php?json&version=7&max=-1" | $(makdir)/php-version-url-dist.php >>$@ + curl -sSL "https://php.net/releases/index.php?json&version=5&max=-1" | $(makdir)/php-version-url-dist.php >>$@ + curl -sSL "https://qa.php.net/api.php?type=qa-releases&format=json" | $(makdir)/php-version-url-qa.php >>$@ ## -- PHP diff --git a/php-version-url-dist.php b/php-version-url-dist.php index e39e7e7..cc36635 100755 --- a/php-version-url-dist.php +++ b/php-version-url-dist.php @@ -25,6 +25,6 @@ if (!empty($versions) && !isset($versions["error"])) { } foreach ($by_minor as $v => $r) { - printf("%s\t%s\tcurl -sS %s%s | tar xj\n", $v, $r, $mirror, + printf("%s\t%s\tcurl -sSL %s%s | tar xj\n", $v, $r, $mirror, $versions[$r]["source"][0]["filename"]); } diff --git a/php-version-url-qa.php b/php-version-url-qa.php index dfa5ca4..c94273f 100755 --- a/php-version-url-qa.php +++ b/php-version-url-qa.php @@ -25,7 +25,7 @@ if (!empty($versions) && !isset($versions["error"]) && isset($versions["releases } foreach ($by_minor as $v => $r) { - printf("%s\t%s\tcurl -sS %s | tar xj\n", $v, + printf("%s\t%s\tcurl -sSL %s | tar xj\n", $v, $versions["releases"][$r]["version"], $versions["releases"][$r]["files"]["bz2"]["path"]); } diff --git a/php-version.php b/php-version.php index 8fa04ac..63d35b3 100755 --- a/php-version.php +++ b/php-version.php @@ -39,13 +39,16 @@ if (isset($by_minor[$version])) { print("5.6.33\n"); break; case "7.0": - print("7.0.27\n"); + print("7.0.33\n"); break; case "7.1": - print("7.1.14\n"); + print("7.1.27\n"); break; case "7.2": - print("7.2.2\n"); + print("7.2.16\n"); + break; + case "7.3": + print("7.3.3\n"); break; case "master": print("master\n"); -- 2.30.2