xref: /PHP-8.3/ext/xml/tests/bug72085.phpt (revision 485d3acf)
1--TEST--
2Bug #72085 (SEGV on unknown address zif_xml_parse)
3--EXTENSIONS--
4xml
5--FILE--
6<?php
7$var1 = xml_parser_create_ns();
8xml_set_element_handler($var1, new Exception(""), 4096);
9try {
10    xml_parse($var1,  str_repeat("<a>", 10));
11} catch (Error $e) {
12    echo $e->getMessage(), "\n";
13}
14?>
15--EXPECT--
16Invalid callback Exception::__invoke, no array or string given
17