Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,788 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@mechelon đang làm issue này rồi.

Từ ngày 27/10/2026.

  • #3 của @mechelon — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bash, macos, php
Lĩnh vực
devops, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
124
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của beyondcode/herd-community

Tất cả issue của beyondcode/herd-community

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.