You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string() #20695
==238248== Conditional jump or move depends on uninitialised value(s)
==238248== at 0x4A81F04: normalize_value (zend_ini_parser.y:317)
==238248== by 0x4A833A0: ini_parse (zend_ini_parser.y:403)
==238248== by 0x4A81D9C: zend_parse_ini_string (zend_ini_parser.y:267)
==238248== by 0x476E06D: zif_parse_ini_string (basic_functions.c:2539)
==238248== by 0x49D0BAC: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:1421)
==238248== by 0x4A5170B: execute_ex (zend_vm_execute.h:116441)
==238248== by 0x49B8FF0: zend_call_function (zend_execute_API.c:1014)
==238248== by 0x49B94E0: zend_call_known_function (zend_execute_API.c:1108)
==238248== by 0x4AD19FC: zend_call_known_instance_method (zend_API.h:860)
==238248== by 0x4AD1A36: zend_call_known_instance_method_with_0_params (zend_API.h:866)
==238248== by 0x4AD204E: zend_objects_destroy_object (zend_objects.c:172)
==238248== by 0x4AD0ECB: zend_objects_store_del (zend_objects_API.c:181)
==238248==
==238248== Conditional jump or move depends on uninitialised value(s)
==238248== at 0x4A81F41: normalize_value (zend_ini_parser.y:318)
==238248== by 0x4A833A0: ini_parse (zend_ini_parser.y:403)
==238248== by 0x4A81D9C: zend_parse_ini_string (zend_ini_parser.y:267)
==238248== by 0x476E06D: zif_parse_ini_string (basic_functions.c:2539)
==238248== by 0x49D0BAC: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:1421)
==238248== by 0x4A5170B: execute_ex (zend_vm_execute.h:116441)
==238248== by 0x49B8FF0: zend_call_function (zend_execute_API.c:1014)
==238248== by 0x49B94E0: zend_call_known_function (zend_execute_API.c:1108)
==238248== by 0x4AD19FC: zend_call_known_instance_method (zend_API.h:860)
==238248== by 0x4AD1A36: zend_call_known_instance_method_with_0_params (zend_API.h:866)
==238248== by 0x4AD204E: zend_objects_destroy_object (zend_objects.c:172)
==238248== by 0x4AD0ECB: zend_objects_store_del (zend_objects_API.c:181)
==238248==
Activity
ndossche commentedon Dec 13, 2025
This doesn't reproduce for me. I get:
Even under Valgrind I get no errors.
ndossche commentedon Dec 13, 2025
Ah under Valgrind I get:
ndossche commentedon Dec 13, 2025
I think there's simply a reasoning error about when which scanner state can cause which parser component to invoke later on.
Probably this suffices:
ndossche commentedon Dec 13, 2025
This was previously an issue but was (incompletely) fixed via #11092 (introduced in #11014)
Fix phpGH-20695: Assertion failure in normalize_value() when parsing …
Fix GH-20695: Assertion failure in normalize_value() when parsing mal…
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4' into PHP-8.5
Merge branch 'PHP-8.5'