ID: 41867 Updated by: [EMAIL PROTECTED] Reported By: moshe at varien dot com -Status: Open +Status: Closed Bug Type: SimpleXML related Operating System: Linux PHP Version: 5.2.3 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-07-01 23:10:51] moshe at varien dot com Found a workaround: $a = new SimplexmlElement("<a><b><c/></b></a>"); echo $a->b->c->c->getName(); Eeww... ------------------------------------------------------------------------ [2007-07-01 22:37:10] 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" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41867&edit=1
