xref: /PHP-8.1/ext/xml/tests/bug72085.phpt (revision 74859783)
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);
9xml_parse($var1,  str_repeat("<a>", 10));
10?>
11--EXPECTF--
12Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
13
14Warning: xml_parse(): Unable to call handler in %s on line %d
15
16Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
17
18Warning: xml_parse(): Unable to call handler in %s on line %d
19
20Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
21
22Warning: xml_parse(): Unable to call handler in %s on line %d
23
24Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
25
26Warning: xml_parse(): Unable to call handler in %s on line %d
27
28Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
29
30Warning: xml_parse(): Unable to call handler in %s on line %d
31
32Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
33
34Warning: xml_parse(): Unable to call handler in %s on line %d
35
36Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
37
38Warning: xml_parse(): Unable to call handler in %s on line %d
39
40Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
41
42Warning: xml_parse(): Unable to call handler in %s on line %d
43
44Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
45
46Warning: xml_parse(): Unable to call handler in %s on line %d
47
48Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
49
50Warning: xml_parse(): Unable to call handler in %s on line %d
51