Commit: 86df840901706328f33a7cd46613f1dda5c21971 Author: Jan Mueller <jan.muel...@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) { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php