Annotation of embedaddon/php/ext/dom/tests/bug38850.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #38850 (lookupNamespaceURI does not return default namespace)
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7: $xml = <<<HERE
! 8: <?xml version="1.0" ?>
! 9: <foo xmlns="http://www.example.com/ns/foo" />
! 10: HERE;
! 11:
! 12: $doc = new DOMDocument();
! 13: $doc->loadXML($xml);
! 14:
! 15: $root = $doc->documentElement;
! 16:
! 17: print $root->lookupNamespaceURI(NULL);
! 18:
! 19:
! 20: ?>
! 21: --EXPECT--
! 22: http://www.example.com/ns/foo
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>