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

Fix: Prevent extra-options from being overwritten #1353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PPP01
Copy link

@PPP01 PPP01 commented Nov 24, 2023

The extraoptions get partially overwritten:
--with-config-file-path
--with-config-file-scan-dir

This means that the additional inis are no longer loaded from the correct directory. If you have set up many php versions, then the config-file-scan-dir per version is not practical.

In version 1.27 the path was not yet overwritten and worked because it was appended at the end of the Makefile. Since v.1.28 the path is fixed in the code and there is no possibility to overwrite it.

With the patch, the extraoptions are split if necessary and then set correctly via withOption(option,value). Before the build, the system checks whether the two options are set.

@peter279k
Copy link
Member

Thanks for the PR. If possible, could you help me to add some unit tests to current Test classes in the tests/PhpBrew directory?

@PPP01
Copy link
Author

PPP01 commented Nov 28, 2023

I'll try. But I have my difficulties with the unit tests because my dev-system does not have all needed dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants