xref: /PHP-8.0/Zend/tests/bug77589.phpt (revision 682e2f6c)
1--TEST--
2BUG #77589 (Core dump using parse_ini_string with numeric sections)
3--FILE--
4<?php
5var_dump(
6    parse_ini_string(<<<INI
7[0]
8a = 1
9b = on
10c = true
11
12["true"]
13a = 100
14b = null
15c = yes
16INI
17, TRUE, INI_SCANNER_TYPED));
18
19?>
20--EXPECT--
21array(2) {
22  [0]=>
23  array(3) {
24    ["a"]=>
25    int(1)
26    ["b"]=>
27    bool(true)
28    ["c"]=>
29    bool(true)
30  }
31  ["true"]=>
32  array(3) {
33    ["a"]=>
34    int(100)
35    ["b"]=>
36    NULL
37    ["c"]=>
38    bool(true)
39  }
40}
41