#27908 [NEW]: xml default_handlers not being called

From: Date: Wed, 07 Apr 2004 16:34:00 +0000
Subject: #27908 [NEW]: xml default_handlers not being called
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57728@lists.php.net to get a copy of this message
From:             ahundiak at ingr dot com
Operating system: Linux
PHP version:      5.0.0RC1
PHP Bug Type:     XML related
Bug description:  xml default_handlers not being called

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

-- 
Edit bug report at http://bugs.php.net/?id=27908&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27908&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27908&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27908&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27908&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27908&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27908&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27908&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27908&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27908&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27908&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27908&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27908&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27908&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27908&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27908&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27908&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27908&r=float


Thread (13 messages)

« previous php.bugs (#57728) next »