|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-02-07 09:37 UTC] jani@php.net
[2010-02-07 10:01 UTC] noemail at example dot org
[2010-02-07 11:40 UTC] svn@php.net
[2010-02-07 11:40 UTC] jani@php.net
[2010-02-07 12:08 UTC] svn@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Description: ------------ parse_ini_file() is not parsing constants that begin with an underscore. CentOS 5 / PHP 5.3.1 from source Note: This did work as expected in PHP 5.1.6 Reproduce code: --------------- ##### ini.ini ##### [section] key1 = "no error" key2buggy = __STRING key3buggy = __STRING" stays mainly on the plain." ##### test.php ##### <?php define('__STRING', 'The rain in Spain'); $arr = parse_ini_file('./ini.ini'); print_r($arr); Expected result: ---------------- Array ( [section] => Array ( [key1] => no error [key2buggy] => The rain in Spain [key3buggy] => The rain in Spain stays mainly on the plain. ) ) Actual result: -------------- Array ( [section] => Array ( [key1] => no error [key2buggy] => __STRING [key3buggy] => __STRING stays mainly on the plain. ) )