|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-10-15 06:56 UTC] sean@php.net
Description: ------------ When an entity contains a nested (special character) entity, the handler is not called properly, and this can result in malformed XML. I worked on this for about 30 mins, tonight, and didn't get very far, so no patch, yet. Reproduce code: --------------- http://livedocs.phpdoc.info/ref.regex Expected result: ---------------- <ulink url="http://www.tin.org/bin/man.cgi?section=7&topic=regex"> Actual result: -------------- <ulink url="http://www.tin.org/bin/man.cgi?section=7<phpdoc_include ref="amp"/>topic=regex"> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
The parser expects charset of the XML files to be UTF-8, for the French translation it is ISO-8859-1. To solve many of the errors in parsing, modify mkindex.php and change xml_parser_create("UTF-8"); to xml_parser_create("ISO-8859-1"); This is not a livedocs bug, as the input should technically be UTF-8.