diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/xml/tests/xml004.phpt | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/xml/tests/xml004.phpt')
-rw-r--r-- | ext/xml/tests/xml004.phpt | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/ext/xml/tests/xml004.phpt b/ext/xml/tests/xml004.phpt deleted file mode 100644 index 78840ee122..0000000000 --- a/ext/xml/tests/xml004.phpt +++ /dev/null @@ -1,64 +0,0 @@ ---TEST-- -XML parser case folding test ---SKIPIF-- -<?php include("skipif.inc"); ?> ---INI-- -magic_quotes_runtime=0 ---FILE-- -<?php -chdir(dirname(__FILE__)); - -$xp = xml_parser_create(); -xml_parser_set_option($xp, XML_OPTION_CASE_FOLDING, false); -xml_set_element_handler($xp, "start_element", "end_element"); -$fp = fopen("xmltest.xml", "r"); -while ($data = fread($fp, 4096)) { - xml_parse($xp, $data, feof($fp)); -} -xml_parser_free($xp); -$xp = xml_parser_create(); -xml_parser_set_option($xp, XML_OPTION_CASE_FOLDING, true); -xml_set_element_handler($xp, "start_element", "end_element"); -$fp = fopen("xmltest.xml", "r"); -while ($data = fread($fp, 4096)) { - xml_parse($xp, $data, feof($fp)); -} -xml_parser_free($xp); - -function start_element($xp, $elem, $attribs) -{ - print "<$elem"; - if (sizeof($attribs)) { - while (list($k, $v) = each($attribs)) { - print " $k=\"$v\""; - } - } - print ">\n"; -} - -function end_element($xp, $elem) -{ - print "</$elem>\n"; -} -?> ---EXPECT-- -<root id="elem1"> -<elem1> -<elem2> -<elem3> -<elem4> -</elem4> -</elem3> -</elem2> -</elem1> -</root> -<ROOT ID="elem1"> -<ELEM1> -<ELEM2> -<ELEM3> -<ELEM4> -</ELEM4> -</ELEM3> -</ELEM2> -</ELEM1> -</ROOT> |