Skip to content

Commit 19c8ccb

Browse files
authored
* Migrate sdk files to http://downloads.php.net/~windows/php-sdk * Add some debugging * Allow multiline package match
1 parent abe66fd commit 19c8ccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/php/libsdk/SDK/Config.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
class Config
88
{
99
/* Config variables. */
10-
protected static $depsHost = 'windows.php.net';
10+
protected static $depsHost = 'downloads.php.net';
1111
protected static $depsPort = 443;
1212
protected static $depsUriScheme = "https";
13-
protected static $depsBaseUri = "/downloads/php-sdk/deps";
13+
protected static $depsBaseUri = "/~windows/php-sdk/deps";
1414

1515
/* protected static $sdkNugetFeedUrl = "http://127.0.0.1/sdk/nuget"; */
1616

@@ -148,7 +148,7 @@ public static function getKnownBranches() : array
148148
$tmp = $fetcher->getByUri(self::$depsBaseUri . "/series/");
149149
if (false !== $tmp) {
150150
$data = array();
151-
if (preg_match_all(",/packages-(.+)-(v[cs]\d+)-(x86|x64|arm64)-(stable|staging)\.txt,U", $tmp, $m, PREG_SET_ORDER)) {
151+
if (preg_match_all(",packages-(.+)-(v[cs]\d+)-(x86|x64|arm64)-(stable|staging)\.txt,Us", $tmp, $m, PREG_SET_ORDER)) {
152152
foreach ($m as $b) {
153153
if (!isset($data[$b[1]])) {
154154
$data[$b[1]] = array();

0 commit comments

Comments
 (0)