summaryrefslogtreecommitdiff
path: root/ext/xml/tests/bug27908.phpt
blob: abb856137afc6787f46965f3242784cfc8d95b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #27908 (default handler not being called)
--FILE--
<?php

function x_default_handler($xp,$data) 
{ 
    echo "x_default_handler $data\n"; 
} 
$xp = xml_parser_create(); 
xml_set_default_handler($xp,'x_default_handler'); 
xml_parse($xp, '<root></root>',TRUE); 
xml_parser_free($xp); 
echo "Done\n";
?>
--EXPECT--
x_default_handler <root>
x_default_handler </root>
Done