#31046 [Opn->Bgs]: Segmentation fault on simplexml_load_string
| From: | fmk@php.net | Date: | Thu, 09 Dec 2004 22:51:22 +0000 |
| Subject: | #31046 [Opn->Bgs]: Segmentation fault on simplexml_load_string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69993@lists.php.net to get a copy of this message | ||
ID: 31046
Updated by: fmk@php.net
Reported By: rbro at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: SimpleXML related
Operating System: Linux
PHP Version: 5CVS-2004-12-09 (dev)
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2004-12-09 23:34:08] rbro at hotmail dot com
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 this bug report at http://bugs.php.net/?id=31046&edit=1