|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-08-01 17:26 UTC] felipe@php.net
[2010-08-01 17:27 UTC] felipe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2010-08-01 17:27 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ If I set the third parameter of the parse_ini_file function to INI_SCANNER_RAW, then the ini file has to end with a newline, else it will trigger a "syntax error, unexpected $end" warning. The same ini file works with the default scanner_mode(INI_SCANNER_NORMAL), so I think this is a bug. Test script: --------------- <?php $ini_array = parse_ini_file("test.ini", true, INI_SCANNER_RAW); Expected result: ---------------- no warning Actual result: -------------- Warning: syntax error, unexpected $end ...