--TEST-- GH-15868 (Assertion failure in xml_parse_into_struct after exception) --EXTENSIONS-- xml --FILE-- ", $values, $tags); } catch (Error $e) { echo $e->getMessage(), "\n"; } $parser = xml_parser_create(); xml_set_element_handler($parser, function ($parser, $name, $attrs) { }, function ($parser, $name) { throw new Error('stop 2'); } ); try { xml_parse_into_struct($parser, "", $values, $tags); } catch (Error $e) { echo $e->getMessage(), "\n"; } $parser = xml_parser_create(); xml_set_character_data_handler($parser, function() { throw new Error('stop 3'); }); try { xml_parse_into_struct($parser, "", $values, $tags); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- stop 1 stop 2 stop 3