diff --git a/README-zh.md b/README-zh.md index 13ec9b5e..3f8c31df 100755 --- a/README-zh.md +++ b/README-zh.md @@ -184,7 +184,7 @@ bin/spc --version ./bin/spc download --for-extensions="openssl,pcntl,mbstring,pdo_sqlite" # 下载依赖时,优先下载有预编译的库(节省编译依赖的时间) ./bin/spc download --for-extensions="openssl,curl,mbstring,mbregex" --prefer-pre-built -# 下载编译不同版本的 PHP (--with-php=x.y,推荐 7.3 ~ 8.3) +# 下载编译不同版本的 PHP (--with-php=x.y 或 --with-php=x.y.z,推荐 8.1 ~ 8.3) ./bin/spc download --for-extensions="openssl,curl,mbstring" --with-php=8.1 # 构建包含 bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl 扩展的 php-cli 和 micro.sfx diff --git a/README.md b/README.md index 3ba434b4..6ef29db8 100755 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Basic usage for building php with some extensions: ./bin/spc download --for-extensions="openssl,pcntl,mbstring,pdo_sqlite" # download pre-built libraries first (save time for compiling dependencies) ./bin/spc download --for-extensions="openssl,curl,mbstring,mbregex" --prefer-pre-built -# download different PHP version (--with-php=x.y, recommend 7.3 ~ 8.3) +# download different PHP version (--with-php=x.y or --with-php=x.y.z, recommend 8.1 ~ 8.3) ./bin/spc download --for-extensions="openssl,curl,mbstring" --with-php=8.1 # with bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl extension, build both CLI and phpmicro SAPI diff --git a/docs/en/guide/manual-build.md b/docs/en/guide/manual-build.md index a88e8e05..a8d252dc 100644 --- a/docs/en/guide/manual-build.md +++ b/docs/en/guide/manual-build.md @@ -143,6 +143,7 @@ including php-src and the source code of various dependent libraries. bin/spc download --all # 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 +# Also supports specific version of php release: 8.3.10, 8.2.22, etc. bin/spc download --all --with-php=8.2 # Show download progress bar while downloading (curl) @@ -170,7 +171,7 @@ bin/spc download --for-libs=liblz4,libevent --for-extensions=pcntl,rar,xml bin/spc download --for-libs=liblz4,libevent --without-suggestions # When downloading sources, ignore some source caches (always force download, e.g. switching PHP version) -bin/spc download --for-extensions=curl,pcntl,xml --ignore-cache-sources=php-src --with-php=8.3 +bin/spc download --for-extensions=curl,pcntl,xml --ignore-cache-sources=php-src --with-php=8.3.10 # Set retry times (default is 0) bin/spc download --all --retry=2 diff --git a/docs/zh/guide/manual-build.md b/docs/zh/guide/manual-build.md index 19dbd308..dd3d38ac 100644 --- a/docs/zh/guide/manual-build.md +++ b/docs/zh/guide/manual-build.md @@ -132,8 +132,8 @@ bin/spc download --for-libs=liblz4,libevent --for-extensions=pcntl,rar,xml # 仅下载要编译的库(包括其依赖,使用库名,不包含可选库) bin/spc download --for-libs=liblz4,libevent --without-suggestions -# 下载资源时,忽略部分资源的缓存,强制下载(如切换 PHP 版本) -bin/spc download --for-extensions=curl,pcntl,xml --ignore-cache-sources=php-src --with-php=8.3 +# 下载资源时,忽略部分资源的缓存,强制下载(如切换特定 PHP 版本) +bin/spc download --for-extensions=curl,pcntl,xml --ignore-cache-sources=php-src --with-php=8.3.10 # 下载资源时,优先下载有预编译包的依赖库(减少编译依赖的时间) bin/spc download --for-extensions="curl,pcntl,xml,mbstring" --prefer-pre-built @@ -141,7 +141,7 @@ bin/spc download --for-extensions="curl,pcntl,xml,mbstring" --prefer-pre-built # 下载所有依赖包 bin/spc download --all -# 下载所有依赖包,并指定下载的 PHP 主版本,可选:7.3,7.4,8.0,8.1,8.2,8.3。 +# 下载所有依赖包,并指定下载的 PHP 主版本,可选:7.3,7.4,8.0,8.1,8.2,8.3,也可以使用特定的版本,如 8.3.10。 bin/spc download --all --with-php=8.2 # 下载时显示下载进度条(curl)