1--TEST--
2parse_ini_string() crashes on values starting with number or unquoted strings
3--FILE--
4<?php
5
6$contents = <<<EOS
7[agatha.christie]
8title = 10 little indians
9foo[123] = E_ALL & ~E_DEPRECATED
10foo[456] = 123
11EOS;
12
13var_dump(parse_ini_string($contents, false, INI_SCANNER_TYPED));
14
15?>
16Done
17--EXPECTF--
18array(%d) {
19  ["title"]=>
20  string(%d) "10 little indians"
21  ["foo"]=>
22  array(%d) {
23    [123]=>
24    string(%d) "24575"
25    [456]=>
26    int(123)
27  }
28}
29Done
30