|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-26 22:10 UTC] tony2001@php.net
[2005-07-27 10:54 UTC] eric at aplosmedia dot com
[2005-08-04 10:58 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
Description: ------------ If an INI file contains a definition such as NO = 667, php will bail out with a parse error. Warning: Error parsing /home/public_html/lookup.ini on line 147 in /home/public_html/start.php on line 24 This occurs on PHP 5.0.4 on Windows XP, RHEL 3 as well as php 4.3.11 on RHEL 3 (only platforms tested) Reproduce code: --------------- lookup.ini ==================== ; NETHERLANDS NL = 31 ; NORWAY NO = 47 ; NEW ZEALAND NZ = 64 PHP ==================== <?php print_r( parse_ini_file( './lookup.ini' ) ); ?> Expected result: ---------------- should return an array: Array ( [NL] => 31 [NO] => 47 [NZ] => 64 } Actual result: -------------- Warning: Error parsing /home/public_html/lookup.ini on line 147 in /home/public_html/start.php on line 24 Array ( [NL] => 31 }