|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-08-28 20:08 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2013-08-28 20:08 UTC] ab@php.net
[2013-08-29 06:57 UTC] kristo at waher dot net
[2014-09-27 17:30 UTC] wxiaoguang at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 00:00:01 2025 UTC |
Description: ------------ parse_ini_file() works correctly if INI_SCANNER_RAW is not used. However once it is used then newlines throw errors in code and make it impossible to store any newline-including strings in INI files. It's said that if you want to use newlines in your INI, you must enclose in double-quotes. This is true, but not if you use INI_SCANNER_RAW option. Since the alternative of not using INI_SCANNER_RAW is not an option (due to how it converts some strings and values), this is a bug and should be fixed. Test script: --------------- INI: name="thomas moore"; SCRIPT: parse_ini_file('test.ini',false,INI_SCANNER_RAW); Expected result: ---------------- no error Actual result: -------------- Warning: syntax error, unexpected '"' in test.ini on line 2 in \test.php on line 1