GlobalState::getIniSettingsAsString()
generates code that triggers warnings
#5270
Labels
feature/process-isolation
Issues related to running tests in separate PHP processes
feature/test-runner
CLI test runner
type/bug
Something is broken
version/9
Something affects PHPUnit 9
version/10
Something affects PHPUnit 10
We have this code (PHPUnit 9.6, PHPUnit 10.0)
to generate code that when run in a separate process reproduces the PHP configuration in the parent process.
This can, for instance, lead to
being run, which triggers a warning because
mbstring.internal_encoding
is deprecated.We should avoid generating
ini_set()
calls for values that are not configured in the parent process.It is unclear whether
$value === null
can be safely used to detect whether a value is configured or not.As the error suppression operator
@
is used, this should only ever be a problem when a custom error handler does not honor the fact that such a warning should be ignored.The text was updated successfully, but these errors were encountered: