environment
environment copied to clipboard
Ini setting with special chars breaks parsing
When an ini setting is quoted, for example xdebug.file_link_format = "phpstorm://open?file=%f&line=%l"
, ini_get
will return a simple string without the protection quotes and Runtime::getCurrentSettings
will return an invalid unqoted stringxdebug.file_link_format=phpstorm://open?file=%f&line=%l"
which will break any test.
PHPUnit\Framework\Exception: PHP: syntax error, unexpected '=' in Unknown on line 20
We could ensure string settings are wrapped in quotes.
Can you send a pull request with a fix? Thanks!