php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/xml/tests/ |
files >> //opt/php-7.0.1/ext/xml/tests/xml009.phpt |
--TEST-- XML parser test, default namespaces --SKIPIF-- <?php require_once("skipif.inc"); if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");} ?> --FILE-- <?php function start_elem($parser,$name,$attribs) { var_dump($name); } function end_elem() { } $xml = <<<HERE <a xmlns="http://example.com/foo" xmlns:bar="http://example.com/bar" xmlns:baz="http://example.com/baz"> <bar:b /> <bar:c xmlns:bar="http://example.com/foo"/> </a> HERE; $parser = xml_parser_create_ns("ISO-8859-1","@"); xml_set_element_handler($parser,'start_elem','end_elem'); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); xml_parse($parser, $xml); xml_parser_free($parser); ?> --EXPECT-- string(24) "http://example.com/foo@a" string(24) "http://example.com/bar@b" string(24) "http://example.com/foo@c"y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`