Skip to content

php-cli v1.9.2

Choose a tag to compare

@jingjingxyk jingjingxyk released this 25 Apr 10:32
· 390 commits to main since this release
item value
branch main
tag v1.9.2
swoole version v6.0.2
php version 8.1.32, 8.2.28, 8.3.19, 8.4.5
suport OS platform linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-cygwin-x64
release date 2025-04-25

php-cli runtime

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

变更:详情

  1. 修复macos x86_64 环境下 要求 cmake 最低版本3.5
  2. 默认启动的扩展列表,移除 phpy 扩展(存在问题,待解决)

快速使用 包含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.9.2

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

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

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

  # 查看扩展属性
   xattr ./php

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