|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-06 19:45 UTC] sniper@php.net
[2005-03-18 16:22 UTC] werner at esmt dot org
[2005-03-24 18:31 UTC] sniper@php.net
[2005-03-24 18:33 UTC] sniper@php.net
[2005-08-30 22:24 UTC] andrei@php.net
[2005-09-01 04:39 UTC] rrichards@php.net
[2005-10-12 05:22 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 02 14:00:01 2026 UTC |
Description: ------------ As the test case shows, it does not appear that the default handler is being called under PHP5RC1. The other handlers seem to work but the default handler is required to get the document type line. PHP4.3.5 works. Using libxml2 2.6.5. Reproduce code: --------------- 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 "Parse Test " . PHP_VERSION . " Done\n"; Expected result: ---------------- x_default_handler <root> x_default_handler </root> Parse Test 5.0.0RC1 Done Actual result: -------------- Parse Test 5.0.0RC1