You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now PHP uses semicolon separted comments it its ini file. When I am trying to read php.ini file, I am getting error
>>> config = ConfigObj('/etc/php5/fpm/php.ini')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/configobj.py", line 1229, in __init__
self._load(infile, configspec)
File "/usr/local/lib/python3.4/dist-packages/configobj.py", line 1318, in _load
raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 3.
The text was updated successfully, but these errors were encountered:
Adding an option to the ConfigObj class to specify the character(s) which begin a comment seems like a valid and useful feature. To be honest I'm not sure when the next time we'll be doing any major configobj work will be, but we can definitely tackle this when that happens if no one makes a pull request before then.
In the meantime, a workaround you could use would be to do something really hacky like
Now PHP uses semicolon separted comments it its ini file. When I am trying to read php.ini file, I am getting error
The text was updated successfully, but these errors were encountered: