1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/standard/tests/gh20695.phpt
Niels Dossche 85cb6e421a Fix GH-20695: Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()
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.
2025-12-15 22:46:27 +01:00

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)
}
}