summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/bug41867.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/tests/bug41867.phpt')
-rw-r--r--ext/simplexml/tests/bug41867.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/simplexml/tests/bug41867.phpt b/ext/simplexml/tests/bug41867.phpt
new file mode 100644
index 0000000..33e2de9
--- /dev/null
+++ b/ext/simplexml/tests/bug41867.phpt
@@ -0,0 +1,18 @@
+--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===