environment icon indicating copy to clipboard operation
environment copied to clipboard

Ini setting with special chars breaks parsing

Open Aerzas opened this issue 2 years ago • 1 comments

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.

Aerzas avatar Apr 26 '22 05:04 Aerzas

Can you send a pull request with a fix? Thanks!

sebastianbergmann avatar Jul 28 '22 12:07 sebastianbergmann