Skip to content

Commit 345fe78

Browse files
committed
Add version table in docs
1 parent 55efe6d commit 345fe78

File tree

2 files changed

+48
-23
lines changed

2 files changed

+48
-23
lines changed

docs/en/guide/index.md

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,30 @@ The following is the architecture support situation, where :gear: represents sup
2121
| Windows | :gear: :computer: | |
2222
| FreeBSD | :computer: | :computer: |
2323

24-
Among them, Linux is currently only tested on Ubuntu, Debian, and Alpine distributions,
25-
and other distributions have not been tested, which cannot guarantee successful compilation.
26-
For untested distributions, local compilation can be done using methods such as Docker to avoid environmental issues.
27-
28-
There are two architectures for macOS: `x86_64` and `Arm`, but binaries compiled on one architecture cannot be directly used on the other architecture.
29-
Rosetta 2 cannot guarantee that programs compiled with `Arm` architecture can fully run on `x86_64` environment.
30-
31-
Windows currently only supports the x86_64 architecture, and does not support 32-bit x86 or arm64 architecture.
32-
33-
## Supported PHP Version
34-
35-
Currently, static php cli supports PHP versions 8.1 to 8.5, and theoretically supports PHP 8.0 and earlier versions.
36-
Simply select the earlier version when downloading.
37-
However, due to some extensions and special components that have stopped supporting earlier versions of PHP,
38-
static-php-cli will not explicitly support earlier versions.
24+
Current supported PHP versions for compilation:
25+
26+
> :warning: Partial support, there may be issues with new beta versions and old versions.
27+
>
28+
> :heavy_check_mark: Supported
29+
>
30+
> :x: Not supported
31+
32+
| PHP Version | Status | Comment |
33+
|-------------|--------------------|-------------------------------------------------------------------------------------------------------------------------|
34+
| 7.2 | :x: | |
35+
| 7.3 | :x: | phpmicro and many extensions do not support 7.3, 7.4 versions |
36+
| 7.4 | :x: | phpmicro and many extensions do not support 7.3, 7.4 versions |
37+
| 8.0 | :warning: | PHP official has stopped maintaining 8.0, we no longer handle 8.0 related backport support |
38+
| 8.1 | :warning: | PHP official only provides security updates for 8.1, we no longer handle 8.1 related backport support after 8.5 release |
39+
| 8.2 | :heavy_check_mark: | |
40+
| 8.3 | :heavy_check_mark: | |
41+
| 8.4 | :heavy_check_mark: | |
42+
| 8.5 (beta) | :warning: | PHP 8.5 is currently in beta stage |
43+
44+
> This table shows the support status of static-php-cli for building corresponding versions, not the PHP official support status for that version.
45+
46+
## PHP Support Versions
47+
48+
Currently, static-php-cli supports PHP versions 8.2 ~ 8.5, and theoretically supports PHP 8.1 and earlier versions, just select the earlier version when downloading.
49+
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.
3950
We recommend that you compile the latest PHP version possible for a better experience.

docs/zh/guide/index.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,30 @@ static-php-cli 是一个用于构建静态编译的 PHP 二进制的工具,目
1919
| Windows | :gear: :computer: | |
2020
| FreeBSD | :computer: | :computer: |
2121

22-
其中,Linux 目前仅在 Ubuntu、Debian、Alpine 发行版测试通过,其他发行版未进行测试,不能保证编译成功。
23-
对于未经过测试的发行版,可以使用 Docker 等方式本地编译,避免环境导致的问题。
24-
25-
macOS 下支持 x86_64 和 Arm 两种架构,但在其中一个架构上编译的二进制无法直接在另一个架构上使用。
26-
Rosetta 2 不能保证 Arm 架构编译的程序可以完全运行在 x86_64 环境下。
27-
28-
Windows 目前只支持 x86_64 架构,不支持 32 位 x86、不支持 arm64 架构。
22+
当前支持编译的 PHP 版本:
23+
24+
> :warning: 部分支持,对于新的测试版和旧版本可能存在问题。
25+
>
26+
> :heavy_check_mark: 支持
27+
>
28+
> :x: 不支持
29+
30+
| PHP Version | Status | Comment |
31+
|-------------|--------------------|---------------------------------------------------------|
32+
| 7.2 | :x: | |
33+
| 7.3 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 |
34+
| 7.4 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 |
35+
| 8.0 | :warning: | PHP 官方已停止 8.0 的维护,我们不再处理 8.0 相关的 backport 支持 |
36+
| 8.1 | :warning: | PHP 官方仅对 8.1 提供安全更新,在 8.5 发布后我们不再处理 8.1 相关的 backport 支持 |
37+
| 8.2 | :heavy_check_mark: | |
38+
| 8.3 | :heavy_check_mark: | |
39+
| 8.4 | :heavy_check_mark: | |
40+
| 8.5 (beta) | :warning: | PHP 8.5 目前处于 beta 阶段 |
41+
42+
> 这个表格的支持状态是 static-php-cli 对构建对应版本的支持情况,不是 PHP 官方对该版本的支持情况。
2943
3044
## PHP 支持版本
3145

32-
目前,static-php-cli 对 PHP 8.1 ~ 8.5 版本是支持的,对于 PHP 8.0 及更早版本理论上支持,只需下载时选择早期版本即可。
46+
目前,static-php-cli 对 PHP 8.2 ~ 8.5 版本是支持的,对于 PHP 8.1 及更早版本理论上支持,只需下载时选择早期版本即可。
3347
但由于部分扩展和特殊组件已对早期版本的 PHP 停止了支持,所以 static-php-cli 不会明确支持早期版本。
3448
我们推荐你编译尽可能新的 PHP 版本,以获得更好的体验。

0 commit comments

Comments
 (0)