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.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/simplexml/tests/bug41867.phpt b/ext/simplexml/tests/bug41867.phpt
new file mode 100644
index 000000000..f530f95dc
--- /dev/null
+++ b/ext/simplexml/tests/bug41867.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #41867 (getName is broken)
+--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();
+?>
+--EXPECT--
+a
+b
+c