From: silver_dragoon77 at hotmail dot com
Operating system: WinXP
PHP version: 5.0.0b4 (beta4)
PHP Bug Type: SimpleXML related
Bug description: SimpleXML fails to load an xml file which contains html entities
Description:
------------
The example string given at the php simple xml manual page contains
actór (spanish stress on the "o"). simplexml_load_string or even
simplexml_load_file both fail. If I remove the ó it works fine.
Reproduce code:
---------------
$xmlstr = <<<XML
<?xml version='1.0' standalone='yes'?>
<movies>
<movie>
<title>PHP: Behind the Parser</title>
<characters>
<character>
<name>Ms. Coder</name>
<actor>Onlivia Actora</actor>
</character>
<character>
<name>Mr. Coder</name>
<actor>El Actor</actor>
</character>
</characters>
<plot>
So, this language. It's like, a programming language. Or is it a
scripting language? All is revealed in this thrilling horror spoof
of a documentary.
</plot>
<rating type="thumbs">7</rating>
<rating type="stars">5</rating>
</movie>
</movies>
XML;
$xml = simplexml_load_string($xmlstr);
var_dump($xml);
Expected result:
----------------
var_dump should return a simplexml object
Actual result:
--------------
$xml is bool(false)
--
Edit bug report at http://bugs.php.net/?id=27541&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27541&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27541&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27541&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27541&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27541&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27541&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27541&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27541&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27541&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27541&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27541&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27541&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27541&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27541&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27541&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27541&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27541&r=float