ID:               27908
 Comment by:       k at ailis dot de
 Reported By:      ahundiak at ingr dot com
 Status:           Verified
 Bug Type:         XML related
 Operating System: Linux
 PHP Version:      5CVS-2004-04-08
 New Comment:

I'm currently experiencing the same problem. The bug is still present
in PHP 5.0.1. 

I'm using libxml2 2.6.11 and libexpat 1.95.6.


Previous Comments:
------------------------------------------------------------------------

[2004-08-06 15:29:13] tom at ideaweb dot de

i have the same problem too. in version 4 there are no 
problems, but in php5 this is broken. the bug is not 
fixed till 5.0.0. i think it is a very import "core" 
function to get "old" applications of version 4 
running!!

------------------------------------------------------------------------

[2004-04-07 12:34:00] ahundiak at ingr dot com

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 this bug report at http://bugs.php.net/?id=27908&edit=1

Reply via email to