#32609 [NEW]: simplexml_load_file crashes CLI

From: Date: Wed, 06 Apr 2005 15:24:09 +0000
Subject: #32609 [NEW]: simplexml_load_file crashes CLI
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76446@lists.php.net to get a copy of this message
From:             mlovett at morpace dot com
Operating system: Windows XP
PHP version:      5.0.4
PHP Bug Type:     SimpleXML related
Bug description:  simplexml_load_file crashes CLI

Description:
------------
Trying to load a simple xml file. PHP crashes (see the dialog box "Sorry,
the CLI needs to close now"

Reproduce code:
---------------
<?php
   $xml = simplexml_load_file("my.xml");
   if ($xml == false) throw new Exception("Problem loading file");
?>


/// here's the input file:

<?xml version="1.0" encoding="iso-8859-1"?>
<universe>
   <planet>mars</planet>
   <planet>jupiter</planet>
</universe>


Expected result:
----------------
I expected the file to load, or FALSE to be returned

Actual result:
--------------
CLI crashes

-- 
Edit bug report at http://bugs.php.net/?id=32609&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32609&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32609&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32609&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32609&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32609&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32609&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32609&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32609&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32609&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32609&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=32609&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=32609&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32609&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32609&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32609&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32609&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32609&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32609&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32609&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32609&r=mysqlcfg


Thread (5 messages)

« previous php.bugs (#76446) next »