From: rbro at hotmail dot com
Operating system: Linux
PHP version: 5CVS-2004-12-09 (dev)
PHP Bug Type: SimpleXML related
Bug description: Segmentation fault on simplexml_load_string
Description:
------------
This is related to bug 31045 which I just reported, but it's a slightly
different scenario and result here. If I compare the result of
simplexml_load_string in an 'if' statement, I'm getting a segmentation
fault. The same thing happens on simplexml_load_file.
Reproduce code:
---------------
<?php
if (($doc = simplexml_load_string('<xml></xml>')) == false)
{
echo 'equals false';
}
else
{
echo 'does not equal false';
}
?>
Expected result:
----------------
does not equal false
Actual result:
--------------
Segmentation fault
--
Edit bug report at http://bugs.php.net/?id=31046&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31046&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31046&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31046&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31046&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31046&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31046&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31046&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31046&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31046&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31046&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31046&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31046&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31046&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31046&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31046&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31046&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31046&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31046&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31046&r=mysqlcfg