|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36888 Segmentation fault when references object incorrectly
Submitted: 2006-03-28 12:37 UTC Modified: 2006-03-29 10:25 UTC
From: bvghead at hotmail dot com Assigned:
Status: Closed Package: SimpleXML related
PHP Version: 5.1.2 OS: Red Hat AS4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: bvghead at hotmail dot com
New email:
PHP Version: OS:


 [2006-03-28 12:37 UTC] bvghead at hotmail dot com
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"?>

$xml = simplexml_load_string($xml_document2);

$prod1 = $xml->children();
echo $prod1['productid']; echo "\ndone.";

Expected result:
SimpleXMLElement Object
    [productid] => ISBN1845760832


Actual result:
SimpleXMLElement Object
    [productid] => ISBN1845760832
Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-28 13:02 UTC]
Please try using this CVS snapshot:
For Windows:

Can't reproduce.
 [2006-03-29 10:25 UTC] bvghead at hotmail dot com
Using the lastest snapshop I can't reproduce either.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 12:01:29 2024 UTC