#29748 [NEW]: simplexml: tags doesn't exist crash my CLI or Apache
| From: | mesarpe at gmail dot com | Date: | Thu, 19 Aug 2004 00:27:59 +0000 |
| Subject: | #29748 [NEW]: simplexml: tags doesn't exist crash my CLI or Apache | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-64903@lists.php.net to get a copy of this message | ||
From: mesarpe at gmail dot com
Operating system: windows XP
PHP version: 5.0.1
PHP Bug Type: CGI related
Bug description: simplexml: tags doesn't exist crash my CLI or Apache
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 bug report at http://bugs.php.net/?id=29748&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29748&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29748&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29748&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29748&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29748&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29748&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29748&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29748&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29748&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29748&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29748&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29748&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29748&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29748&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29748&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29748&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29748&r=float