mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
I think there's simply a reasoning error about when which scanner state can cause which parser component to invoke later on. Closes GH-20702.
15 lines
274 B
PHP
15 lines
274 B
PHP
--TEST--
|
|
GH-20695 (Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string())
|
|
--FILE--
|
|
<?php
|
|
var_dump(parse_ini_string('8 [[] = !!$]', true, INI_SCANNER_TYPED));
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[8]=>
|
|
array(1) {
|
|
["["]=>
|
|
int(0)
|
|
}
|
|
}
|