Skip to content

php-cli v1.7.0

Choose a tag to compare

@jingjingxyk jingjingxyk released this 23 Dec 05:31
· 713 commits to main since this release
item value
branch main
tag v1.7.0
swoole version v6.0.0
php version 8.1.31, 8.2.27, 8.3.15, 8.4.2
suport OS platform linux-x64 、linux-arm64、macos-x64、macos-arm64
release date 2024-12-23

php-cli runtime

借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时

变更:详情

  1. swoole版本由v5.1.6 升级到v6.0.0
  2. 因为构建时间过长,暂时禁用 windows-cygwin-x64 构建,等待解决
  3. 默认构建的PHP版本由 8.1.30,8.2.25, 8.3.13,8.4.1 升级为 8.1.31,8.2.27,8.3.15,8.4.2

快速使用 包含swoole 的 php-cli 运行时

curl -fSL  https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true | bash -s -- --version v1.7.0

# 指定下载版本
curl -fSL  https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true | bash -s -- --version v1.7.0 --php-version v8.4.2

备注: macos环境下 首次运行 无权限 ,解决方法

note : macos clearing the com.apple.quarantine extended attribute

  # 查看扩展属性
   xattr ./php

  # 去除扩展属性
  sudo xattr -rd com.apple.quarantine  ./php