Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect and automatically set up php.ini entry for installation #20

Open
asgrim opened this issue Jul 11, 2024 · 0 comments
Open

Detect and automatically set up php.ini entry for installation #20

asgrim opened this issue Jul 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@asgrim
Copy link
Collaborator

asgrim commented Jul 11, 2024

Typically, the approach for adding extension=blah.so or zend_extension=blah.so to the PHP INI would be:

  • add a new file with the line in the directory indicated by Scan for additional .ini files in: using the priority defined in composer.json (e.g. 20-myext.ini)
  • if the Scan for additional .ini files in: is empty, add the line to the file indicated by Loaded Configuration File: entry
  • if that is also empty, tell the user what they need to do

However, when using setups like the deb.sury.org PHP installer, this approach would ONLY enable the ext for a single SAPI (the CLI SAPI). This would be confusing as the extension would not be enabled for the Apache SAPI, so consumers may be confused by the fact it does not have the extension loaded!

Investigate the various common approaches to how php.ini are used, and we may need to add special handling for each "custom" approach, and then fall back to the expected typical approach above.

@asgrim asgrim added the enhancement New feature or request label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant