|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-07-01 22:37 UTC] moshe at varien dot com
Description:
------------
getName() returns name of the parent node instead of supplied one
Reproduce code:
---------------
$a = new SimplexmlElement("<a><b><c/></b></a>");
echo $a->b->c->getName();
Expected result:
----------------
"c"
Actual result:
--------------
"b"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 13:00:01 2025 UTC |
Found a workaround: $a = new SimplexmlElement("<a><b><c/></b></a>"); echo $a->b->c->c->getName(); Eeww...