1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Expand the /get/xx-5-LATEST support to include pecl and debug packages

This commit is contained in:
Hannes Magnusson
2007-06-30 16:53:47 +00:00
parent 1b2490e7a7
commit 295fa64bec

View File

@@ -129,10 +129,10 @@ if (preg_match("!^get/([^/]+)$!", $URI, $what)) {
if (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) {
$df = $dlinfo[1];
if(strpos($df, "php-5-LATEST") !== false) {
if(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, "php-4-LATEST") !== false) {
} elseif(strpos($df, "4-LATEST") !== false) {
include_once $_SERVER['DOCUMENT_ROOT'] . "/include/version.inc";
$df = str_replace("4-LATEST", $PHP_4_VERSION, $df);
}