1--TEST--
2Bug #52138 (Constants are parsed into the ini file for section names)
3--FILE--
4<?php
5
6define('MYCONST', 1);
7define('A', 'B');
8
9$ini_file = dirname(__FILE__)."/bug52138.data";
10
11$ret = parse_ini_file($ini_file, true);
12var_dump($ret);
13
14?>
15--EXPECTF--
16array(4) {
17  ["MYCONST"]=>
18  array(1) {
19    ["MYCONST"]=>
20    string(1) "1"
21  }
22  ["M_PI"]=>
23  array(1) {
24    ["FOO"]=>
25    string(%d) "3.%d test"
26  }
27  ["foo::bar"]=>
28  array(2) {
29    ["A"]=>
30    string(1) "1"
31    ["B"]=>
32    string(3) "BAB"
33  }
34  ["MYCONST M_PI"]=>
35  array(0) {
36  }
37}
38