diff options
author | Rob Richards <rrichards@php.net> | 2007-07-02 11:35:18 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2007-07-02 11:35:18 +0000 |
commit | 4938221a36cb512b5d39330fdad28635f8622395 (patch) | |
tree | cd90c11356776e2777294a902985f116aa555455 /ext/simplexml/tests | |
parent | 320a41603e7fea7ffb952fd7636e0074a4d60729 (diff) | |
download | php-git-4938221a36cb512b5d39330fdad28635f8622395.tar.gz |
fix bug #41867 (getName is broken)
add test
Diffstat (limited to 'ext/simplexml/tests')
-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 0000000000..f530f95dcc --- /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 |