Skip to content

Conversation

@alies-dev
Copy link
Contributor

@alies-dev alies-dev commented Sep 12, 2025

PHP_INI_SCAN_DIR may contain a non-existing directory in the list.

This PR fixes handling of additional INI directory filesby checking if filenames are an array.

I personally experienced fatal error because I had this config:

PHP_INI_SCAN_DIR => ~/.config/herd-lite/bin:
_ => /opt/homebrew/bin/php

I have removed herd-lite, but my php config contained a reference to the ~/.config/herd-lite/bin


The original issue caused by the export PHP_INI_SCAN_DIR=... in my ~/.zshrc, added by herd-lite and not removed on uninstall (#beyondcode/herd-community#11)

alies-dev and others added 2 commits September 12, 2025 10:47
by checking if filenames are an array.

Skip not existing dirs on uninstall command

PHP_INI_SCAN_DIR may contain a non-existing directory in the list
@asgrim asgrim self-assigned this Sep 15, 2025
@asgrim asgrim added the bug Something isn't working label Sep 15, 2025
@asgrim asgrim self-requested a review September 15, 2025 19:28
Copy link
Collaborator

@asgrim asgrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alies-dev 👍

@asgrim asgrim added this to the 1.3.0 milestone Sep 15, 2025
@asgrim asgrim assigned alies-dev and unassigned asgrim Sep 15, 2025
@asgrim asgrim merged commit 000fc09 into php:main Sep 15, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants