summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/profile09.phpt
blob: 627ad20b8f56f04481f2f23d449326bd122d4ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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---