|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-02 10:21 UTC] letssurf at gmail dot com
[2008-04-02 10:25 UTC] jani@php.net
[2008-04-08 12:40 UTC] jani@php.net
[2008-08-17 21:37 UTC] lbarnaud@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 12:00:01 2025 UTC |
Description: ------------ parse_ini_file doesn't see the EOF as a delimiter for ini entries. Reproduce code: --------------- -- file: config.ini -- [section1] name = value <<< EOF here, no new line -- file: test.php -- <?php $ini = parse_ini_file('config.ini', true); print_r($ini); Expected result: ---------------- Array ( [section1] => Array ( [name] => value ) ) Actual result: -------------- Warning: syntax error, unexpected $end in eof.ini on line 2 in test.php on line 2 Array ( [section1] => Array ( ) )