xref: /PHP-8.0/ext/simplexml/tests/bug41867.phpt (revision a555cc0b)
1--TEST--
2Bug #41867 (getName is broken)
3--SKIPIF--
4<?php if (!extension_loaded("simplexml")) print "skip"; ?>
5--FILE--
6<?php
7
8$a = simplexml_load_string("<a><b><c/></b></a>");
9echo $a->getName()."\n";
10echo $a->b->getName()."\n";
11echo $a->b->c->getName()."\n";
12?>
13--EXPECT--
14a
15b
16c
17