SPX install.sh reports failure when default PHP is 8.5+, though the install worked for 8.2–8.4
Đá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
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ả
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.
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của beyondcode/herd-community
-
fixed-in-next-release macOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
beyondcode/herd-community#1774 ·
-
[Bug]: PHP 8.3 php.ini missing auto_prepend_file and herd-ext extension lines (dump() undefined)Đang mởmacOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
beyondcode/herd-community#1693 ·
-
macOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
beyondcode/herd-community#1602 ·
-
fixed-in-next-release macOS
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
beyondcode/herd-community#1789 · 1 reaction ·
-
macOS
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
beyondcode/herd-community#1785 · 1 bình luận ·
Tất cả issue của beyondcode/herd-community
Issue tương tự
-
enhancement github_actions good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
containers/podman-desktop-extension-ai-lab#4865 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hygiene type:refactor
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
dotCMS/ai-workflows#74 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100