[Bug]: 1.30.2 creates PHP 8.2 config and ~/.zshrc lines on every start, although 8.2 isn't installed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
Start by reproducing the startup behavior on macOS with PHP 8.2 uninstalled, then inspect Herd's PHP-version discovery and startup configuration generation. The issue identifies the affected outputs: config/php/82, the 8.2 FPM config files, and the PHP 8.2 lines in ~/.zshrc. Done means startup no longer recreates these files or shell lines for an uninstalled version; verify with the reported reproduction steps.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Platform
macOS
Operating system version
macOS 27.0.1 (26A434)
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.30.2 (Build: 68)
PHP Version
Not version-specific. Installed: PHP 8.5.10 (global) and 7.4.33. PHP 8.2 is not installed.
Bug description
Since updating to Herd 1.30.2, Herd creates a configuration for PHP 8.2 every time it starts, although PHP 8.2 is not installed:
- ~/Library/Application Support/Herd/config/php/82/php.ini
- ~/Library/Application Support/Herd/config/fpm/8.2-fpm.conf
- ~/Library/Application Support/Herd/config/fpm/8.2-fpm-debug.conf
- and it appends these lines to ~/.zshrc:
Herd injected PHP 8.2 configuration.
export HERD_PHP_82_INI_SCAN_DIR="/Users//Library/Application Support/Herd/config/php/82"
herd php:list shows 8.2 as "Not Installed", there is no php82 binary in Herd's bin folder, and no site is isolated to 8.2. Only 8.2 is affected; the 7.4 and 8.5 configs are not touched.
Herd 1.30.1 did not do this: none of these existed before, and they appeared the moment 1.30.2 started for the first time.
Expected: Herd writes configuration and shell lines only for PHP versions that are installed, as 1.30.1 did.
Steps to reproduce
- Herd 1.30.2 with PHP 8.2 not installed (here: 7.4 and 8.5).
- Quit Herd.
- Delete config/php/82, config/fpm/8.2-fpm.conf, config/fpm/8.2-fpm-debug.conf and the two "PHP 8.2" lines in ~/.zshrc.
- Open Herd.
- Within a few seconds the three files are back, and the two lines are appended to ~/.zshrc again.
(My ~/.zshrc is a symlink to a file in a git repository; Herd writes through it, which is how I noticed.)
Relevant log output
$ herd php:list
| 8.5 * | Installed |
| 8.4 | Not Installed |
| 8.3 | Not Installed |
| 8.2 | Not Installed |
| 7.4 | Installed |
$ ls ~/Library/Application\ Support/Herd/bin | grep php
php
php74
php74-fpm
php85
php85-fpm
$ ls ~/Library/Application\ Support/Herd/config/php ~/Library/Application\ Support/Herd/config/fpm
config/fpm: 7.4-fpm.conf 8.2-fpm-debug.conf 8.2-fpm.conf 8.5-fpm.conf
config/php: 74 82 85 cacert.pem
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 123
- 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
-
[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ó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
beyondcode/herd-community#1760 ·
-
macOS
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
beyondcode/herd-community#1755 ·
-
macOS
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 63/100
beyondcode/herd-community#1752 ·
Tất cả issue của beyondcode/herd-community
Issue tương tự
-
agent:Windows bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/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
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 88/100
Kc1t/alethe-agents#319 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
High-DPI fixes for release/1.3: editor toolbar icons and Color Picker layout (patch included)Đang mởno-stack-trace
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Status: Needs confirmation Status: Needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày