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