note 108079 deleted from function.parse-ini-file by danbrown

From: Date: Tue, 27 Mar 2012 15:33:16 +0000
Subject: note 108079 deleted from function.parse-ini-file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186846@lists.php.net to get a copy of this message
Note Submitter: Vicary ---- The quote escaping behavior is actually quite unexpected, so keep in mind when you use it. It works good with escaped quote (\") or new lines (\r\n), but not both. While the following works fine (INI gives same result as PHP code), INI: foo="\"bar\"" PHP: Array( 'foo' => '"bar"' ) INI: foo="foo baz" PHP: Array( 'foo' => "foo\nbaz" ) Using both \" and \n throws a parse error as the following line, INI: foo="foo \"baz\""

« previous php.notes (#186846) next »