Skip to content
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

Php/IniFile support lines without separator or value #131

Open
domcleal opened this issue Jun 3, 2014 · 3 comments
Open

Php/IniFile support lines without separator or value #131

domcleal opened this issue Jun 3, 2014 · 3 comments

Comments

@domcleal
Copy link
Member

domcleal commented Jun 3, 2014

The php-pecl-apc RPM has the line "apc.filters" in its default ini file, which is apparently supported. IniFile.entry_generic_nocomment can't parse a line without a separator. I'm a bit stumped trying to fix this, and I think the solution will mean a minor compatibility break.

Test case:

test PHP.lns get "apc.filters\n = ?

(from https://bugzilla.redhat.com/show_bug.cgi?id=1083019)

@domcleal domcleal added the bug label Jun 3, 2014
@raphink
Copy link
Member

raphink commented Jun 13, 2014

You mean it should support flags, just like the MySQL lens?

@domcleal
Copy link
Member Author

Right, but I think MySQL didn't support lines like "foo =" (separator, no value).

@raphink
Copy link
Member

raphink commented Jun 13, 2014

When spaces are allowed around the separator, it is pretty much impossible (or rather—my brain hasn't been able to process yet) to support both flags and empty values.

@domcleal domcleal added the lens label Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants