|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29748 simplexml: tags doesn't exist crash my CLI or Apache
Submitted: 2004-08-19 02:27 UTC Modified: 2004-08-19 18:17 UTC
From: mesarpe at gmail dot com Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.0.1 OS: windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
35 + 2 = ?
Subscribe to this entry?

 [2004-08-19 02:27 UTC] mesarpe at gmail dot com
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

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";
 echo "b";

Expected result:
a or b
a if it exist.
b if it doesn't

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-19 09:47 UTC]
We don't support dev-php.
 [2004-08-19 18:17 UTC] mesarpe at gmail dot com
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
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 04:05:54 2022 UTC