summaryrefslogtreecommitdiff
path: root/ext/xml/tests/bug25666.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xml/tests/bug25666.phpt')
-rw-r--r--ext/xml/tests/bug25666.phpt34
1 files changed, 0 insertions, 34 deletions
diff --git a/ext/xml/tests/bug25666.phpt b/ext/xml/tests/bug25666.phpt
deleted file mode 100644
index ce67ea8ed4..0000000000
--- a/ext/xml/tests/bug25666.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-Bug #25666 (XML namespaces broken in libxml-based SAX interface)
---SKIPIF--
-<?php
-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
-<foo:a xmlns:foo="http://example.com/foo"
- xmlns:bar="http://example.com/bar"
- xmlns:baz="http://example.com/baz">
- <bar:b />
- <baz:c />
-</foo>
-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/baz@c"