mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
23 lines
394 B
PHP
23 lines
394 B
PHP
--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
|