mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
19 lines
302 B
PHP
19 lines
302 B
PHP
--TEST--
|
|
Bug #41867 (getName is broken)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = simplexml_load_string("<a><b><c/></b></a>");
|
|
echo $a->getName()."\n";
|
|
echo $a->b->getName()."\n";
|
|
echo $a->b->c->getName()."\n";
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
a
|
|
b
|
|
c
|
|
===DONE===
|