diff options
Diffstat (limited to 'ext/simplexml/tests/bug41867.phpt')
-rw-r--r-- | ext/simplexml/tests/bug41867.phpt | 14 |
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 |