mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
24 lines
429 B
PHP
24 lines
429 B
PHP
--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
|