Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,788 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@mechelon ci sta già lavorando.

Dal 27/10/2026.

  • #3 di @mechelon — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
bash, macos, php
Ambito
devops, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Nessun dato sulla lingua
Stelle
124
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di beyondcode/herd-community

Tutte le issue di beyondcode/herd-community

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.