blob: b0de90b88ded75476cd6483ea81b6d35472b38c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|