This commit is contained in:
crazywhalecc 2025-07-28 10:17:14 +08:00
parent fb106a3d41
commit 85e89e4326
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
4 changed files with 7 additions and 6 deletions

View File

@ -243,7 +243,7 @@ Also, it is available when downloading with the `--for-extensions` option.
```bash ```bash
# Specifying to download a alpha version of PHP 8.5 # Specifying to download a alpha version of PHP 8.5
bin/spc download --all -U "php-src:https://downloads.php.net/~daniels/php-8.5.0alpha1.tar.xz" bin/spc download --all -U "php-src:https://downloads.php.net/~edorian/php-8.5.0alpha2.tar.xz"
# Specifying to download an older version of the curl library # Specifying to download an older version of the curl library
bin/spc download --all -U "curl:https://curl.se/download/curl-7.88.1.tar.gz" bin/spc download --all -U "curl:https://curl.se/download/curl-7.88.1.tar.gz"

View File

@ -210,7 +210,7 @@ bin/spc download --from-zip=/path/to/your/download.zip
```bash ```bash
# 例如:指定下载 Alpha 版的 PHP8.5 # 例如:指定下载 Alpha 版的 PHP8.5
bin/spc download --all -U "php-src:https://downloads.php.net/~daniels/php-8.5.0alpha1.tar.xz" bin/spc download --all -U "php-src:https://downloads.php.net/~edorian/php-8.5.0alpha2.tar.xz"
# 指定下载旧版本的 curl 库 # 指定下载旧版本的 curl 库
bin/spc download --all -U "curl:https://curl.se/download/curl-7.88.1.tar.gz" bin/spc download --all -U "curl:https://curl.se/download/curl-7.88.1.tar.gz"

View File

@ -21,7 +21,7 @@ class PhpSource extends CustomSourceBase
{ {
$major = defined('SPC_BUILD_PHP_VERSION') ? SPC_BUILD_PHP_VERSION : '8.4'; $major = defined('SPC_BUILD_PHP_VERSION') ? SPC_BUILD_PHP_VERSION : '8.4';
if ($major === '8.5') { if ($major === '8.5') {
Downloader::downloadSource('php-src', ['type' => 'url', 'url' => 'https://downloads.php.net/~daniels/php-8.5.0alpha1.tar.xz'], $force); Downloader::downloadSource('php-src', ['type' => 'url', 'url' => 'https://downloads.php.net/~edorian/php-8.5.0alpha2.tar.xz'], $force);
} else { } else {
Downloader::downloadSource('php-src', self::getLatestPHPInfo($major), $force); Downloader::downloadSource('php-src', self::getLatestPHPInfo($major), $force);
} }

View File

@ -16,7 +16,8 @@ $test_php_version = [
// '8.1', // '8.1',
// '8.2', // '8.2',
// '8.3', // '8.3',
'8.4', // '8.4',
'8.5',
]; ];
// test os (macos-13, macos-14, macos-15, ubuntu-latest, windows-latest are available) // test os (macos-13, macos-14, macos-15, ubuntu-latest, windows-latest are available)
@ -48,7 +49,7 @@ $prefer_pre_built = false;
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) { $extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'grpc', 'Linux', 'Darwin' => 'bcmath',
'Windows' => 'curl', 'Windows' => 'curl',
}; };
@ -72,7 +73,7 @@ $with_libs = match (PHP_OS_FAMILY) {
// You can use `common`, `bulk`, `minimal` or `none`. // You can use `common`, `bulk`, `minimal` or `none`.
// note: combination is only available for *nix platform. Windows must use `none` combination // note: combination is only available for *nix platform. Windows must use `none` combination
$base_combination = match (PHP_OS_FAMILY) { $base_combination = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'none', 'Linux', 'Darwin' => 'common',
'Windows' => 'none', 'Windows' => 'none',
}; };