update for PHP-8 master
authorMichael Wallner <mike@php.net>
Mon, 30 Nov 2020 14:09:38 +0000 (15:09 +0100)
committerMichael Wallner <mike@php.net>
Mon, 30 Nov 2020 14:09:38 +0000 (15:09 +0100)
Makefile
php-version-url-dist.php
php-version.php

index 1dd2c87528c43780ac6d6e81335c4efa26496c2b..4a903a800030c45581df06f9fd58e99cff648477 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 export
 
-PHP ?= 7.3
+PHP ?= 7.4
 JOBS ?= 2
 PHP_MIRROR ?= https://php.net/distributions/
 TMPDIR ?= /tmp
@@ -62,6 +62,7 @@ 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 -sSL "https://php.net/releases/index.php?json&version=8&max=-1" | $(makdir)/php-version-url-dist.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   >>$@
index cc36635316d24f40c069883315eae5f366b01201..f0e487d9ddccdc81a1dc6577182d548fe6522a24 100755 (executable)
@@ -25,6 +25,10 @@ if (!empty($versions) && !isset($versions["error"])) {
 }
 
 foreach ($by_minor as $v => $r) {
-       printf("%s\t%s\tcurl -sSL %s%s | tar xj\n", $v, $r, $mirror,
-                       $versions[$r]["source"][0]["filename"]);
+       $compress = array("gz" => "z", "bz2" => "j", "xz" => "J");
+       $filename = $versions[$r]["source"][0]["filename"];
+       printf("%s\t%s\tcurl -sSL %s%s | tar x%s\n", $v, $r, $mirror,
+                       $filename,
+                       $compress[pathinfo($filename, PATHINFO_EXTENSION)]
+               );
 }
index 63d35b3e6962ddacd5307c358a85df288c79aec9..d7b15f3acb2132536c992dfd792ee2641cbebc4a 100755 (executable)
@@ -45,10 +45,16 @@ if (isset($by_minor[$version])) {
                print("7.1.27\n");
                break;
        case "7.2":
-               print("7.2.16\n");
+               print("7.2.34\n");
                break;
        case "7.3":
-               print("7.3.3\n");
+               print("7.3.25\n");
+               break;
+       case "7.4":
+               print("7.4.13\n");
+               break;
+       case "8.0":
+               print("8.0.0\n");
                break;
        case "master":
                print("master\n");