mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
7f5b508f26
This will be expanded as issues arise and will be a formal definition (in code) of simplexml's behaviour.
20 lines
413 B
PHP
20 lines
413 B
PHP
--TEST--
|
|
SimpleXML [profile]: Accessing a namespaced element without a namespace
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
error_reporting(E_ALL & ~E_NOTICE);
|
|
$root = simplexml_load_string('<?xml version="1.0"?>
|
|
<root xmlns:reserved="reserved-ns">
|
|
<reserved:child>Hello</reserved:child>
|
|
</root>
|
|
');
|
|
|
|
echo $root->child;
|
|
echo "\n---Done---\n";
|
|
?>
|
|
--EXPECT--
|
|
|
|
---Done---
|