xref: /PHP-7.1/ext/xml/tests/bug73135.phpt (revision 113213f0)
1--TEST--
2Bug #73135 (xml_parse() segmentation fault)
3--CREDITS--
4edgarsandi - <edgar.r.sandi@gmail.com>
5--FILE--
6<?php
7    function start_elem($parser, $xml) {
8        xml_parse($parser, $xml);
9    }
10
11    $xml = <<<HERE
12    <a xmlns="ahihi">
13        <bar foo="ahihi"/>
14    </a>
15HERE;
16
17    $parser = xml_parser_create_ns();
18    xml_set_element_handler($parser, 'start_elem', 'ahihi');
19    xml_parse($parser, $xml);
20?>
21--EXPECTF--
22Warning: xml_parse(): Unable to call handler ahihi() in %s%ebug73135.php on line %d
23
24Warning: xml_parse(): Unable to call handler ahihi() in %s%ebug73135.php on line %d
25