From 1ce3ba0f308c3d3aa9ce485cc7c4a84aa2be39c2 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 15 Jul 2025 22:08:10 +0800 Subject: [PATCH] Update docs and READMEs --- README-zh.md | 21 +++++++++++---------- README.md | 4 +++- docs/.vitepress/components/CliGenerator.vue | 1 + docs/en/guide/index.md | 2 +- docs/en/guide/manual-build.md | 4 ++-- docs/zh/guide/index.md | 2 +- docs/zh/guide/manual-build.md | 4 ++-- 7 files changed, 21 insertions(+), 17 deletions(-) diff --git a/README-zh.md b/README-zh.md index 0a0c4578..46a66932 100755 --- a/README-zh.md +++ b/README-zh.md @@ -82,16 +82,17 @@ static-php-cli(简称 `spc`)有许多特性: > > :x: 不支持 -| PHP Version | Status | Comment | -|-------------|--------------------|----------------------------------------------| -| 7.2 | :x: | | -| 7.3 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 | -| 7.4 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 | -| 8.0 | :warning: | PHP 官方已停止 8.0 的维护,我们不再处理 8.0 相关的 backport 支持 | -| 8.1 | :heavy_check_mark: | PHP 官方仅对 8.1 提供安全更新 | -| 8.2 | :heavy_check_mark: | | -| 8.3 | :heavy_check_mark: | | -| 8.4 | :heavy_check_mark: | | +| PHP Version | Status | Comment | +|-------------|--------------------|---------------------------------------------------------| +| 7.2 | :x: | | +| 7.3 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 | +| 7.4 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 | +| 8.0 | :warning: | PHP 官方已停止 8.0 的维护,我们不再处理 8.0 相关的 backport 支持 | +| 8.1 | :heavy_check_mark: | PHP 官方仅对 8.1 提供安全更新,在 8.5 发布后我们不再处理 8.1 相关的 backport 支持 | +| 8.2 | :heavy_check_mark: | | +| 8.3 | :heavy_check_mark: | | +| 8.4 | :heavy_check_mark: | | +| 8.5 | :heavy_check_mark: | | > 这个表格的支持状态是 static-php-cli 对构建对应版本的支持情况,不是 PHP 官方对该版本的支持情况。 diff --git a/README.md b/README.md index 46200f09..45114659 100755 --- a/README.md +++ b/README.md @@ -95,10 +95,12 @@ Currently supported PHP versions for compilation: | 7.3 | :x: | phpmicro and some extensions not supported on 7.x | | 7.4 | :x: | phpmicro and some extensions not supported on 7.x | | 8.0 | :warning: | PHP official has stopped maintenance of 8.0, we no longer provide backport support for version 8.0 | -| 8.1 | :heavy_check_mark: | PHP official has security fixes only | +| 8.1 | :heavy_check_mark: | PHP official has security fixes only, we no longer provide backport support when 8.5 released | | 8.2 | :heavy_check_mark: | | | 8.3 | :heavy_check_mark: | | | 8.4 | :heavy_check_mark: | | +| 8.5 (alpha) | :heavy_check_mark: | | + > This table shows the support status for static-php-cli in building the corresponding version, > not the official PHP support status for that version. diff --git a/docs/.vitepress/components/CliGenerator.vue b/docs/.vitepress/components/CliGenerator.vue index ad17783a..f9f3613d 100644 --- a/docs/.vitepress/components/CliGenerator.vue +++ b/docs/.vitepress/components/CliGenerator.vue @@ -238,6 +238,7 @@ const availablePhpVersions = [ '8.2', '8.3', '8.4', + '8.5', ]; const I18N = { diff --git a/docs/en/guide/index.md b/docs/en/guide/index.md index 9f9bee4c..253562b5 100644 --- a/docs/en/guide/index.md +++ b/docs/en/guide/index.md @@ -32,7 +32,7 @@ Windows currently only supports the x86_64 architecture, and does not support 32 ## Supported PHP Version -Currently, static php cli supports PHP versions 8.1 to 8.4, and theoretically supports PHP 8.0 and earlier versions. +Currently, static php cli supports PHP versions 8.1 to 8.5, and theoretically supports PHP 8.0 and earlier versions. Simply select the earlier version when downloading. However, due to some extensions and special components that have stopped supporting earlier versions of PHP, static-php-cli will not explicitly support earlier versions. diff --git a/docs/en/guide/manual-build.md b/docs/en/guide/manual-build.md index e8e4510e..afaaaf75 100644 --- a/docs/en/guide/manual-build.md +++ b/docs/en/guide/manual-build.md @@ -242,8 +242,8 @@ Also, it is available when downloading with the `--for-extensions` option. ```bash -# Specifying to download a beta version of PHP8.3 -bin/spc download --all -U "php-src:https://downloads.php.net/~eric/php-8.3.0beta1.tar.gz" +# 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" # 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" diff --git a/docs/zh/guide/index.md b/docs/zh/guide/index.md index eb0674c3..7462c155 100644 --- a/docs/zh/guide/index.md +++ b/docs/zh/guide/index.md @@ -29,6 +29,6 @@ Windows 目前只支持 x86_64 架构,不支持 32 位 x86、不支持 arm64 ## PHP 支持版本 -目前,static-php-cli 对 PHP 8.1 ~ 8.4 版本是支持的,对于 PHP 8.0 及更早版本理论上支持,只需下载时选择早期版本即可。 +目前,static-php-cli 对 PHP 8.1 ~ 8.5 版本是支持的,对于 PHP 8.0 及更早版本理论上支持,只需下载时选择早期版本即可。 但由于部分扩展和特殊组件已对早期版本的 PHP 停止了支持,所以 static-php-cli 不会明确支持早期版本。 我们推荐你编译尽可能新的 PHP 版本,以获得更好的体验。 diff --git a/docs/zh/guide/manual-build.md b/docs/zh/guide/manual-build.md index 5301fca1..0f7c5689 100644 --- a/docs/zh/guide/manual-build.md +++ b/docs/zh/guide/manual-build.md @@ -209,8 +209,8 @@ bin/spc download --from-zip=/path/to/your/download.zip 让下载器强制使用你指定的链接下载此 source 的包。使用方法为 `{source-name}:{url}` 即可,可同时重写多个库的下载地址。在使用 `--for-extensions` 选项下载时同样可用。 ```bash -# 例如:指定下载测试版的 PHP8.3 -bin/spc download --all -U "php-src:https://downloads.php.net/~eric/php-8.3.0beta1.tar.gz" +# 例如:指定下载 Alpha 版的 PHP8.5 +bin/spc download --all -U "php-src:https://downloads.php.net/~daniels/php-8.5.0alpha1.tar.xz" # 指定下载旧版本的 curl 库 bin/spc download --all -U "curl:https://curl.se/download/curl-7.88.1.tar.gz"