ID:               36888
 User updated by:  bvghead at hotmail dot com
 Reported By:      bvghead at hotmail dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         SimpleXML related
 Operating System: Red Hat AS4
 PHP Version:      5.1.2
 New Comment:

Using the lastest snapshop I can't reproduce either.

Thanks.


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

[2006-03-28 13:02:44] [EMAIL PROTECTED]

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.

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

[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