Skip to content

Migrate sdk files to http://downloads.php.net/~windows/php-sdk #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/php/libsdk/SDK/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
class Config
{
/* Config variables. */
protected static $depsHost = 'windows.php.net';
protected static $depsHost = 'downloads.php.net';
protected static $depsPort = 443;
protected static $depsUriScheme = "https";
protected static $depsBaseUri = "/downloads/php-sdk/deps";
protected static $depsBaseUri = "/~windows/php-sdk/deps";

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

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