diff options
Diffstat (limited to 'ext/dom/tests/bug38850.phpt')
| -rw-r--r-- | ext/dom/tests/bug38850.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/dom/tests/bug38850.phpt b/ext/dom/tests/bug38850.phpt new file mode 100644 index 000000000..c8ca93928 --- /dev/null +++ b/ext/dom/tests/bug38850.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug # 38850 (lookupNamespaceURI does not return default namespace) +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php +$xml = <<<HERE +<?xml version="1.0" ?> +<foo xmlns="http://www.example.com/ns/foo" /> +HERE; + +$doc = new DOMDocument(); +$doc->loadXML($xml); + +$root = $doc->documentElement; + +print $root->lookupNamespaceURI(NULL); + + +?> +--EXPECT-- +http://www.example.com/ns/foo |
