com web/php: Add ability to to download latest PHP7 stuff using PHP7-LATEST: error.php
| From: | Adam Harvey | Date: | Tue, 19 Apr 2016 12:56:15 +0000 |
| Subject: | com web/php: Add ability to to download latest PHP7 stuff using PHP7-LATEST: error.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-24666@lists.php.net to get a copy of this message | ||
Commit: 86df840901706328f33a7cd46613f1dda5c21971
Author: Jan Mueller <jan.mueller@razorfish.de> Tue, 19 Apr 2016 14:56:15 +0200
Parents: 71c334068ae03815d7d593c3d9d8ea19ddc1f156
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=86df840901706328f33a7cd46613f1dda5c21971
Log:
Add ability to to download latest PHP7 stuff using PHP7-LATEST
Changed paths:
M error.php
Diff:
diff --git a/error.php b/error.php
index c305820..7960a7d 100644
--- a/error.php
+++ b/error.php
@@ -137,7 +137,10 @@ if (preg_match("!^get/([^/]+)$!", $URI, $what)) {
if (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) {
$df = $dlinfo[1];
- if(strpos($df, "5-LATEST") !== false) {
+ if(strpos($df, "7-LATEST") !== false) {
+ include_once $_SERVER['DOCUMENT_ROOT'] . "/include/version.inc";
+ $df = str_replace("7-LATEST", $PHP_7_VERSION, $df);
+ } elseif(strpos($df, "5-LATEST") !== false) {
include_once $_SERVER['DOCUMENT_ROOT'] . "/include/version.inc";
$df = str_replace("5-LATEST", $PHP_5_VERSION, $df);
} elseif(strpos($df, "4-LATEST") !== false) {