#26329 [Opn->Bgs]: domxml_open_file xmlParseEntityRef error
| From: | rrichards@php.net | Date: | Thu, 20 Nov 2003 13:35:50 +0000 |
| Subject: | #26329 [Opn->Bgs]: domxml_open_file xmlParseEntityRef error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-50747@lists.php.net to get a copy of this message | ||
ID: 26329
Updated by: rrichards@php.net
Reported By: mpk at olos dot nl
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: Linux Mandrake 9.2
PHP Version: 4.3.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
& is not a valid xml character.
Previous Comments:
------------------------------------------------------------------------
[2003-11-20 08:19:05] mpk at olos dot nl
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 this bug report at http://bugs.php.net/?id=26329&edit=1