#36888 [NEW]: Segmentation fault when references object incorrectly
| From: | bvghead at hotmail dot com | Date: | Tue, 28 Mar 2006 10:37:35 +0000 |
| Subject: | #36888 [NEW]: Segmentation fault when references object incorrectly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-94975@lists.php.net to get a copy of this message | ||
From: bvghead at hotmail dot com
Operating system: Red Hat AS4
PHP version: 5.1.2
PHP Bug Type: SimpleXML related
Bug description: Segmentation fault when references object incorrectly
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 bug report at http://bugs.php.net/?id=36888&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36888&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36888&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36888&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36888&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36888&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36888&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36888&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36888&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36888&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36888&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36888&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36888&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36888&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36888&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36888&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36888&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36888&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36888&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36888&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36888&r=mysqlcfg