note 94574 added to function.parse-ini-file

From: Date: Thu, 12 Nov 2009 17:09:01 +0000
Subject: note 94574 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-162815@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 95.80.5.179 ---- Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php Edit -- https://master.php.net/note/edit/94574 Del: integrated -- https://master.php.net/note/delete/94574/integrated Del: useless -- https://master.php.net/note/delete/94574/useless Del: bad code -- https://master.php.net/note/delete/94574/bad+code Del: spam -- https://master.php.net/note/delete/94574/spam Del: non-english -- https://master.php.net/note/delete/94574/non-english Del: in docs -- https://master.php.net/note/delete/94574/in+docs Del: other reasons-- https://master.php.net/note/delete/94574 Reject -- https://master.php.net/note/reject/94574 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162815) next »