-
Notifications
You must be signed in to change notification settings - Fork 7.9k
parse_ini_file parse_ini_string bug when when INI_SCANNER_TYPED #11010
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
Comments
The INI scanner converts each token (word) independently. If it is convertible (analogous to |
@iluuu1994 |
@GajowyJ The fix has only been added to master, which means as things are now it will only be present in the next series of PHP (probably 8.3). @iluuu1994 Is that intentional? |
This was indeed intentional because the changes were non-trivial and affect all of ini parsing. Sorry @GajowyJ, my communication was clearly inadequate here. |
@GajowyJ The way you can avoid this at the moment is to wrap the value in double quotes ( |
@iluuu1994 @damianwadley |
Uh oh!
There was an error while loading. Please reload this page.
Description
The following code:
Resulted in this output:
But I expected this output instead:
or
PHP Version
PHP 8.1.17
Operating System
Windows 10
The text was updated successfully, but these errors were encountered: