#29748 [Bgs]: simplexml: tags doesn't exist crash my CLI or Apache
| From: | mesarpe at gmail dot com | Date: | Thu, 19 Aug 2004 16:18:01 +0000 |
| Subject: | #29748 [Bgs]: simplexml: tags doesn't exist crash my CLI or Apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64952@lists.php.net to get a copy of this message | ||
ID: 29748
User updated by: mesarpe at gmail dot com
Reported By: mesarpe at gmail dot com
Status: Bogus
Bug Type: SimpleXML related
Operating System: windows XP
PHP Version: 5.0.1
New Comment:
It's not abvout Dev-PHP.... HAve you read it my description?
There's a bug, try to ue my code and you'll see
Previous Comments:
------------------------------------------------------------------------
[2004-08-19 09:47:50] derick@php.net
We don't support dev-php.
------------------------------------------------------------------------
[2004-08-19 02:27:58] mesarpe at gmail dot com
Description:
------------
Hello! Well, I'm loadind an XML file into a file this xml has a
parameter that doesn't exist. I try to readit, if it doesn't exist,
system shows me a windows messaged that CLI has crashed and my
application will be closed. (I'm using Dev-PHP version alpha 3
http://devphp.sourceforge.net/)
I tryied to check it with Apache and my apache crash down too.
Thanks, anyway!
Reproduce code:
---------------
$var = @simplexml_load_file('xml.xml');
if($var->options->item == false)
echo "a";
else
echo "b";
Expected result:
----------------
a or b
a if it exist.
b if it doesn't
Actual result:
--------------
nothing
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29748&edit=1