|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-20 08:35 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
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