|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-28 13:02 UTC] tony2001@php.net
[2006-03-29 10:25 UTC] bvghead at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ I am using simplexml_load_string calling xml oject->childen(); echo xml element as array object Segmentation fault Reproduce code: --------------- $xml_document2 =<<<EOT <?xml version="1.0"?> <merchant> <product> <productid>ISBN1845760832</productid> </product> </merchant> EOT; $xml = simplexml_load_string($xml_document2); $prod1 = $xml->children(); print_r($prod1); echo $prod1['productid']; echo "\ndone."; Expected result: ---------------- SimpleXMLElement Object ( [productid] => ISBN1845760832 ) done. Actual result: -------------- SimpleXMLElement Object ( [productid] => ISBN1845760832 ) Segmentation fault