Bug #53916 [Opn]: parse_ini_file unable to handle strings with certain characters
| From: | thasypher at gmail dot com | Date: | Thu, 03 Feb 2011 08:00:14 +0000 |
| Subject: | Bug #53916 [Opn]: parse_ini_file unable to handle strings with certain characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158450@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53916&edit=1
ID: 53916
User updated by: thasypher at gmail dot com
Reported by: thasypher at gmail dot com
Summary: parse_ini_file unable to handle strings with certain
characters
Status: Open
Type: Bug
-Package: Unknown/Other Function
+Package: Filesystem function related
Operating System: Debian 5
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Obviously the test script should not contain a comma next to the true
value.
Previous Comments:
------------------------------------------------------------------------
[2011-02-03 08:56:52] thasypher at gmail dot com
Description:
------------
PHP seems to be unable to handle strings with certain signs (#$%) in an
INI file parsed with parse_ini_file.
It throws a warning while doing that.
Even though normally you would quote strings to overcome this issue, the
ConfigParser implementation of Python (for instance) does not do this.
Test script:
---------------
print_r(parse_ini_file('file.ini', true, ));
Expected result:
----------------
An ini file with certain characters will throw a warning and may not be
parsed completely.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53916&edit=1