|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-17 18:02 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2016-07-17 18:02 UTC] cmb@php.net
[2016-11-27 14:18 UTC] cmb@php.net
-Status: Assigned
+Status: Duplicate
[2016-11-27 14:18 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 06:00:01 2025 UTC |
Description: ------------ Adding spaces changes the internal representation of a SimpleXMLElement. If you change the value of c to add a space, '\n', or an additional node <x2/> after the node <x/>, you get the correct output. Test script: --------------- <?php var_dump(simplexml_load_string('<a><b/><c><x/></c></a>')->c); ?> Expected result: ---------------- class SimpleXMLElement#2 (1) { public $x => class SimpleXMLElement#3 (0) { } } Actual result: -------------- class SimpleXMLElement#2 (1) { public ${0} => class SimpleXMLElement#3 (1) { public $x => class SimpleXMLElement#4 (0) { } } }