php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bvghead at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-03-28 12:37 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-28 13:02 UTC] tony2001@php.net
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-29 10:25 UTC] bvghead at hotmail dot com
Using the lastest snapshop I can't reproduce either.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 04:01:28 2024 UTC