|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-18 03:21 UTC] derick@php.net
[2004-12-27 13:41 UTC] johanaworld at hotmail dot com
[2004-12-27 14:58 UTC] derick@php.net
[2004-12-28 15:53 UTC] didou@php.net
[2020-02-07 06:11 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 11:00:01 2025 UTC |
Description: ------------ parse_ini_file() can't handle newline file.txt ---------------------------------- TEST="Line 1 Line 2 Line 3" ---------------------------------- parse_ini_file() only retrieves "Line 1" as a value for TEST. Seems to be fixed in PHP 5.x .... Reproduce code: --------------- <?php $file="file.txt"; $ini_array = parse_ini_file($file); echo "<pre>"; print_r($ini_array); echo "</pre>"; ?> Expected result: ---------------- Array ( [TEST] => Line 1 Line 2 Line 3 ) Actual result: -------------- Array ( [TEST] => Line 1 )