summaryrefslogtreecommitdiff
path: root/ext/xml/tests/bug27908.phpt
blob: e60466fa19f545820b6647b1fe0586dbaf5260ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #27908 (default handler not being called)
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--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