Skip to content

Fix: Prevent extra-options from being overwritten#1353

Open
PPP01 wants to merge 1 commit intophpbrew:masterfrom
PPP01:fix
Open

Fix: Prevent extra-options from being overwritten#1353
PPP01 wants to merge 1 commit intophpbrew:masterfrom
PPP01:fix

Conversation

@PPP01
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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

@fuerst
Copy link
Copy Markdown

fuerst commented Jul 8, 2025

This PR is still necessary to get extraoptions ending up correctly in the created PHP binary.

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.

3 participants