#31046 [Bgs]: Segmentation fault on simplexml_load_string
| From: | rbro at hotmail dot com | Date: | Thu, 09 Dec 2004 22:58:07 +0000 |
| Subject: | #31046 [Bgs]: Segmentation fault on simplexml_load_string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69995@lists.php.net to get a copy of this message | ||
ID: 31046
User updated by: rbro at hotmail dot com
Reported By: rbro at hotmail dot com
Status: Bogus
Bug Type: SimpleXML related
Operating System: Linux
PHP Version: 5CVS-2004-12-09 (dev)
New Comment:
Which bug number is that? I only see one open SimpleXML bug which
doesn't describe this problem.
Previous Comments:
------------------------------------------------------------------------
[2004-12-09 23:51:20] fmk@php.net
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.
------------------------------------------------------------------------
[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