Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

SPX install.sh reports failure when default PHP is 8.5+, though the install worked for 8.2–8.4

未关闭
#1,788 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@mechelon 已经在做这个了。

开始于 2026年10月27日。

  • #3 来自 @mechelon —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
bash, macos, php
领域
devops, tooling

调研方向

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 内容生成。

描述

macOS

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

  1. The install loop is hardcoded to for version in {74..84}, so it skips 8.5 and 8.6.
  2. Release 0.4.17 has no spx-php-8.5-* or spx-php-8.6-* macOS builds.
  3. The final check runs php -m | grep SPX against 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

beyondcode/herd-community 的其他 Issue

查看 beyondcode/herd-community 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。