note 94574 deleted from function.parse-ini-file by danbrown
| From: | danbrown@php.net | Date: | Thu, 07 Jan 2010 16:36:44 +0000 |
| Subject: | note 94574 deleted from function.parse-ini-file by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164740@lists.php.net to get a copy of this message | ||
Note Submitter: andre at laszlo dot nu
----
As of version 5.3 this function seem to have changed its behaviour. Previous versions parsed the
following ini file, seemingly without problem.
Foo = "$"
Bar = "Some value"
Baz = "None"
Qux = "Some other value"
But this recent version gives the following warning (and an empty return value):
Warning: syntax error, unexpected BOOL_FALSE in ./test.ini on line 3 in /some/directory/parse.php on
line 2
It might be very hard to spot the problem since the error is reported on line 3 but it is actually
caused by the unescaped $-sign on the line above. Foo = "\$" solves this problem. Weird
enough, Baz = "Nothing" also "solves" it.