php-src/ext/simplexml/tests/bug41867.phpt

19 lines
302 B
Plaintext
Raw Normal View History

--TEST--
Bug #41867 (getName is broken)
2009-08-03 22:40:58 +00:00
--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";
2009-08-03 22:40:58 +00:00
echo $a->b->c->getName()."\n";
?>
2009-08-03 22:40:58 +00:00
===DONE===
--EXPECT--
a
b
c
2009-08-03 22:40:58 +00:00
===DONE===