ID:               36888
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bvghead at hotmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         SimpleXML related
 Operating System: Red Hat AS4
 PHP Version:      5.1.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip

Can't reproduce.


Previous Comments:
------------------------------------------------------------------------

[2006-03-28 12:37:26] bvghead at hotmail dot com

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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36888&edit=1

Reply via email to