Skip to content

Commit 6598dde

Browse files
committed
Update docs
1 parent 42abb5a commit 6598dde

File tree

8 files changed

+31
-17
lines changed

8 files changed

+31
-17
lines changed

docs/en/faq/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ For Linux systems, you can download the [cacert.pem](https://curl.se/docs/caextr
8484
For the certificate locations of different distros, please refer to [Golang docs](https://go.dev/src/crypto/x509/root_linux.go).
8585

8686
> INI configuration `openssl.cafile` cannot be set dynamically using the `ini_set()` function, because `openssl.cafile` is a `PHP_INI_SYSTEM` type configuration and can only be set in the `php.ini` file.
87+
88+
## Why don't we support older versions of PHP?
89+
90+
Because older versions of PHP have many problems, such as security issues, performance issues, and functional issues.
91+
In addition, many older versions of PHP are not compatible with the latest dependency libraries,
92+
which is one of the reasons why older versions of PHP are not supported.
93+
94+
You can use older versions compiled earlier by static-php-cli, such as PHP 8.0, but earlier versions will not be explicitly supported.

docs/en/guide/extension-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This extension contains an implementation of the coroutine environment for `pdo_
4646

4747
## swow
4848

49-
1. Only PHP version >= 8.0 is supported.
49+
1. Only PHP 8.0 ~ 8.3 is supported.
5050

5151
## imap
5252

docs/en/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Windows currently only supports the x86_64 architecture, and does not support 32
3636

3737
## Supported PHP Version
3838

39-
Currently, static php cli supports PHP versions 8.0 to 8.3, and theoretically supports PHP 7.4 and earlier versions.
39+
Currently, static php cli supports PHP versions 8.1 to 8.4, and theoretically supports PHP 8.0 and earlier versions.
4040
Simply select the earlier version when downloading.
4141
However, due to some extensions and special components that have stopped supporting earlier versions of PHP,
4242
static-php-cli will not explicitly support earlier versions.

docs/en/guide/manual-build.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ including php-src and the source code of various dependent libraries.
142142
# Download all dependencies
143143
bin/spc download --all
144144

145-
# Download all dependent packages, and specify the main version of PHP to download, optional: 7.3, 7.4, 8.0, 8.1, 8.2, 8.3
145+
# Download all dependent packages, and specify the main version of PHP to download, optional: 8.1, 8.2, 8.3, 8.4
146146
# Also supports specific version of php release: 8.3.10, 8.2.22, etc.
147-
bin/spc download --all --with-php=8.2
147+
bin/spc download --all --with-php=8.3
148148

149149
# Show download progress bar while downloading (curl)
150150
bin/spc download --all --debug
@@ -272,12 +272,12 @@ If you want to build multiple versions of PHP and don't want to build other depe
272272
you can use `switch-php-version` to quickly switch to another version and compile after compiling one version:
273273

274274
```shell
275-
# switch to 8.3
276-
bin/spc switch-php-version 8.3
275+
# switch to 8.4
276+
bin/spc switch-php-version 8.4
277277
# build
278278
bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
279-
# switch to 8.0
280-
bin/spc switch-php-version 8.0
279+
# switch to 8.1
280+
bin/spc switch-php-version 8.1
281281
# build
282282
bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
283283
```

docs/zh/faq/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,10 @@ PHP 代码的编译器是完全不同的项目,因此不会考虑额外的情
7070
对于 Linux 系统,你可以从 curl 官方网站下载 [cacert.pem](https://curl.se/docs/caextract.html) 文件,也可以使用系统自带的证书文件。
7171
有关不同发行版的证书位置,可参考 [Go 标准库](https://go.dev/src/crypto/x509/root_linux.go)
7272

73-
> INI 配置 `openssl.cafile` 不可以使用 `ini_set()` 函数动态设置,因为 `openssl.cafile` 是一个 `PHP_INI_SYSTEM` 类型的配置,只能在 `php.ini` 文件中设置。
73+
> INI 配置 `openssl.cafile` 不可以使用 `ini_set()` 函数动态设置,因为 `openssl.cafile` 是一个 `PHP_INI_SYSTEM` 类型的配置,只能在 `php.ini` 文件中设置。
74+
75+
## 为什么不支持旧版本 PHP ?
76+
77+
因为旧版本的 PHP 有很多问题,比如安全问题、性能问题、功能问题等。此外,旧版本的 PHP 很多都无法与最新的依赖库兼容,这也是不支持旧版本 PHP 的原因之一。
78+
79+
你可以使用 static-php-cli 早期编译好的旧版本,如 PHP 8.0,但是不会明确支持早期版本。

docs/zh/guide/extension-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ swoole-hook-sqlite 与 `pdo_sqlite` 扩展冲突。如需使用 Swoole 和 `pdo_
4343

4444
## swow
4545

46-
1. swow 仅支持 PHP >= 8.0 版本。
46+
1. swow 仅支持 PHP 8.0 ~ 8.3 版本。
4747

4848
## imap
4949

docs/zh/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ Windows 目前只支持 x86_64 架构,不支持 32 位 x86、不支持 arm64
2929

3030
## PHP 支持版本
3131

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

docs/zh/guide/manual-build.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ bin/spc download --for-extensions="curl,pcntl,xml,mbstring" --prefer-pre-built
141141
# 下载所有依赖包
142142
bin/spc download --all
143143

144-
# 下载所有依赖包,并指定下载的 PHP 主版本,可选:7.3,7.4,8.0,8.1,8.2,8.3,也可以使用特定的版本,如 8.3.10。
145-
bin/spc download --all --with-php=8.2
144+
# 下载所有依赖包,并指定下载的 PHP 主版本,可选:8.1,8.2,8.3,8.4,也可以使用特定的版本,如 8.3.10。
145+
bin/spc download --all --with-php=8.3
146146

147147
# 下载时显示下载进度条(curl)
148148
bin/spc download --all --debug
@@ -236,12 +236,12 @@ bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
236236
如果你想构建多个版本的 PHP,且不想每次都重复构建其他依赖库,可以使用 `switch-php-version` 在编译好一个版本后快速切换至另一个版本并编译:
237237

238238
```shell
239-
# switch to 8.3
240-
bin/spc switch-php-version 8.3
239+
# switch to 8.4
240+
bin/spc switch-php-version 8.4
241241
# build
242242
bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
243-
# switch to 8.0
244-
bin/spc switch-php-version 8.0
243+
# switch to 8.1
244+
bin/spc switch-php-version 8.1
245245
# build
246246
bin/spc build bcmath,curl,openssl,ftp,posix,pcntl --build-cli
247247
```

0 commit comments

Comments
 (0)