From: mpk at olos dot nl
Operating system: Linux Mandrake 9.2
PHP version: 4.3.2
PHP Bug Type: DOM XML related
Bug description: domxml_open_file xmlParseEntityRef error
Description:
------------
domxml_open_file will crash with xmlParseEntityRef error when it reads a
value with the "&" character in an XML file.
Reproduce code:
---------------
Code:
if (!$dom = domxml_open_file($xmlFilePath, 0, $errors)) {
File:
<praktijk>
<naam>Test Dev & Nieuwe Versie</naam>
<adres>Demolaan 1</adres>
<woonplaats>1010AA Demostad</woonplaats>
<telefoonnummer>010000000</telefoonnummer>
<serienummer>112003</serienummer>
</praktijk>
Expected result:
----------------
Load the tree...
Actual result:
--------------
Warning: domxml_open_file(): xmlParseEntityRef: no name in
/var/www/html/sms/smssentester.php on line 44
Error capture:
[errormessage] => xmlParseEntityRef: no name
[nodename] => naam
[line] => 4
[col] => 10
[directory] => /home/sms
[file] => /home/sms/20031120122827000.xml
--
Edit bug report at http://bugs.php.net/?id=26329&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26329&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26329&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26329&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26329&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26329&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26329&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26329&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26329&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26329&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26329&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26329&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26329&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26329&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26329&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26329&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26329&r=float