|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-03 04:41 UTC] sniper@php.net
[2005-02-03 14:59 UTC] joern_h at gmx dot net
[2005-02-16 07:35 UTC] sniper@php.net
[2010-12-01 16:17 UTC] jani@php.net
-Summary: ext/xml: xml_parse_into_struct() does not resolve
entities in element content
+Summary: xml_parse_into_struct() does not resolve entities in
element content
-Package: Feature/Change Request
+Package: XML related
[2016-06-29 18:40 UTC] cmb@php.net
-Status: Analyzed
+Status: Verified
[2016-06-29 18:40 UTC] cmb@php.net
[2018-10-09 13:35 UTC] cmb@php.net
[2018-10-09 13:36 UTC] cmb@php.net
-Type: Feature/Change Request
+Type: Bug
[2018-10-09 14:07 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2018-10-09 14:11 UTC] cmb@php.net
[2018-10-09 14:11 UTC] cmb@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ When using xml_parse_into_struct, entities from the internal dtd are not resolved in element content. Entities in attribute values are resolved properly. This bug is present in PHP 4.3.8 and PHP5 (cvs from 2004-11-22). Reproduce code: --------------- <?php $xml = <<<HERE <!DOCTYPE test [ <!ENTITY test "test"> ]> <test>&test;</test> HERE; $parser =& xml_parser_create(); xml_parse_into_struct($parser, $xml, $vals, $idx); print_r($vals); xml_parser_free($parser); ?> Expected result: ---------------- Array ( [0] => Array ( [tag] => TEST [type] => complete [level] => 1 [value] => test ) ) Actual result: -------------- Array ( [0] => Array ( [tag] => TEST [type] => complete [level] => 1 ) )