xref: /PHP-8.1/ext/xml/tests/bug27908.phpt (revision 8567bc10)
1--TEST--
2Bug #27908 (default handler not being called)
3--EXTENSIONS--
4xml
5--FILE--
6<?php
7
8function x_default_handler($xp,$data)
9{
10    echo "x_default_handler $data\n";
11}
12$xp = xml_parser_create();
13xml_set_default_handler($xp,'x_default_handler');
14xml_parse($xp, '<root></root>',TRUE);
15xml_parser_free($xp);
16echo "Done\n";
17?>
18--EXPECT--
19x_default_handler <root>
20x_default_handler </root>
21Done
22