-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Process] Fix the removal of host-specific configuration when managing the ini settings in PhpSubprocess
#58195
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
Conversation
Hey! Thanks for your PR. You are targeting branch "7.1" but it seems your PR description refers to branch "5.4, 6.4, and 7.1 for bug fixes". Cheers! Carsonbot |
It would be great to have a test covering that case to prevent regressions. |
The change is inside a private function and is based on the configuration of the environment PHPUnit is executed in. I know some ways on how to create this test, but what would be the correct Symfony way to do this? Are there other similar tests I can adapt from? |
Well, maybe it involve a test running a separate PHP process (passing a specific php.ini so that it does not depend on the config of the host running PHPUnit) using a PHP script using that PhpSubprocess class. That's already the way other PhpSubprocess tests are written. |
PhpSubprocess
PhpSubprocess
PhpSubprocess
fed4e33
to
1ef6bf7
Compare
Thank you @M-arcus. |
Please come back with a follow up PR to add tests if you can. |
preg_match
can return the offset needed forsubstr
in the next line, but without the flag it doesn't put the offset of the capturing group into$matches[0][1]
With the example php.ini the code breaks on execution