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