SPX install.sh reports failure when default PHP is 8.5+, though the install worked for 8.2–8.4
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
调研方向
Start by reading install.sh, focusing on the hardcoded PHP version loop and the final php -m | grep SPX check described in the issue. Compare those checks with Herd’s installed PHP binaries and the listed SPX 0.4.17 builds; done means the installer reports accurately which versions received SPX, without reporting failure when supported versions installed successfully.
由索引模型根据 Issue 内容生成。
描述
Description
When Herd's default PHP is 8.5, running the installer ends with an error, even though SPX installed correctly for every supported version.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/beyondcode/php-spx/HEAD/install.sh)"
INFO Latest release: 0.4.17
INFO Installing the SPX Profiler extension...
INFO Laravel Herd is installed. Installing for all available PHP versions...
INFO Restarting Laravel Herd...
ERROR There was an error installing the extension.
ERROR Please check the output above for any errors.
Environment
- macOS (arm64), Laravel Herd
- Installed PHP versions: 8.2, 8.3, 8.4, 8.5, 8.6
- Default
php: 8.5.12 - SPX release: 0.4.17
Cause
- The install loop is hardcoded to
for version in {74..84}, so it skips 8.5 and 8.6. - Release 0.4.17 has no
spx-php-8.5-*orspx-php-8.6-*macOS builds. - The final check runs
php -m | grep SPXagainst the default PHP (8.5). SPX isn't there, so the script reports failure.
Checked after running: php82 -m, php83 -m and php84 -m all list SPX.
Expected
- Builds for PHP 8.5 and 8.6, plus a wider loop range (or a loop over whatever
php*binaries Herd has installed). - If those can't ship yet, the script should say "PHP 8.5 not supported yet, installed for 8.2, 8.3, 8.4" instead of a general error. It could do that by checking each installed version rather than only the default
php.
- 主要语言
- 没有语言数据
- 星标
- 124
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
beyondcode/herd-community 的其他 Issue
-
fixed-in-next-release macOS
难度 2/5 1-3 小时 新手友好度 76/100
beyondcode/herd-community#1774 ·
-
[Bug]: PHP 8.3 php.ini missing auto_prepend_file and herd-ext extension lines (dump() undefined)未关闭macOS
难度 2/5 1-3 小时 新手友好度 68/100
beyondcode/herd-community#1693 ·
-
macOS
难度 2/5 1-3 小时 新手友好度 72/100
beyondcode/herd-community#1602 ·
-
fixed-in-next-release macOS
难度 4/5 1-2 天 新手友好度 35/100
beyondcode/herd-community#1789 · 1 个 reaction ·
-
macOS
难度 3/5 1-2 天 新手友好度 55/100
beyondcode/herd-community#1785 · 1 条评论 ·
查看 beyondcode/herd-community 的全部 Issue
相似的 Issue
-
simulator-session.yml の simtunnel の固定先が古く、agentd が無いため simtunnel up --wait / status が準備完了を検知できない未关闭
难度 2/5 1-3 小时 新手友好度 68/100
-
automated issue report
难度 2/5 1-3 小时 新手友好度 68/100
camunda/camunda-deployment-references#3903 ·
维护者通常 1 天内回复
-
VLAgent `spec.k8sCollector.includePodLabels: false` has no effect可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
VictoriaMetrics/operator#2772 ·
维护者通常 1 天内回复
-
admission-deferred priority: medium status: ready work-class: scoped
难度 2/5 1-3 小时 新手友好度 70/100
melodic-software/claude-code-plugins#10887 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
personalrobotics/geodude#243 ·
维护者通常 1 天内回复