Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Aug 28, 2018

Some INI processors allow to specify empty values by just giving the
key without the equals sign, for instance MySQL and Python. It appears
to be sensible to add this possibility to our INI parser, so that it
can be used for such INI files as well. We choose NULL as the value of
empty values.

This syntactical enhancement is a (minor) BC break, though, as can be
seen by the necessary change to bug49692.ini. The “comment” formerly
has been simply ignored, but now it would be parsed as key with an
empty value.

This PR is based on Adam's former patch.

cmb69 added 2 commits August 28, 2018 17:36
Some INI processors allow to specify empty values by just giving the
key without the equals sign, for instance MySQL and Python.  It appears
to be sensible to add this possibility to our INI parser, so that it
can be used for such INI files as well.  We choose NULL as the value of
empty values.

This syntactical enhancement is a (minor) BC break, though, as can be
seen by the necessary change to bug49692.ini.  The “comment” formerly
has been simply ignored, but now it would be parsed as key with an
empty value.

This PR is based on Adam's former patch.
@cmb69
Copy link
Member Author

cmb69 commented Sep 8, 2018

If there are no objections, I'll merge this (plus respective notes in NEWS, UPGRADING and the manual) on the next weekend (i.e. in roughly a week).

@php-pulls
Copy link

Comment on behalf of cmb at php.net:

Applied via 3f3e914. Documented via http://svn.php.net/viewvc?view=revision&revision=345642.

@php-pulls php-pulls closed this Sep 15, 2018
@cmb69 cmb69 deleted the implement-67331 branch September 15, 2018 14:06
@cmb69
Copy link
Member Author

cmb69 commented Sep 15, 2018

I have reverted the commit, since it broke some Windows tests (should have checked the Appveyor test failures more closely), and generally needs more though. I'll see if I can come up with a working implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants