#30440 [Ana]: Nested entities cause invalid XML
| From: | jsgoupil@php.net | Date: | Wed, 20 Apr 2005 18:37:22 +0000 |
| Subject: | #30440 [Ana]: Nested entities cause invalid XML | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969367914@lists.php.net to get a copy of this message | ||
ID: 30440
Updated by: jsgoupil@php.net
Reported By: sean@php.net
Status: Analyzed
Bug Type: Livedocs problem
Operating System: n/a
PHP Version: Irrelevant
Assigned To: iliaa
New Comment:
I applied the patch and with French doc there are a lot of accents...
(é à ...)
I got only a Warning (the page is displayed but crash only at the
special character) :
XML: 1:33 Invalid character Line: 1 is <div><div
class="function_link"><function>pg_affected_rows</function> - Retourne
le nombre de lignes affectées</div>
<div><div
class="function_link"><function>pg_affected_rows</function> -
Retourne le nombre de lignes affectées</div>
<div class="function_link"><function>pg_cancel_query</function> -
Annule une requête asynchrone</div>
...
It seems that it is only for displaying functions at the end of a
reference.xml file
Example : fr/ref.pgsql.html
Previous Comments:
------------------------------------------------------------------------
[2004-10-15 17:54:58] sean@php.net
Confirmed that this patch fixes this problem.
Could someone with the necessary karma please patch & commit?
Thanks,
S
------------------------------------------------------------------------
[2004-10-15 17:44:09] nlopess@php.net
That should be fixed with one of my patches:
http://livedocs.aborla.net/patch.php?id=entities
------------------------------------------------------------------------
[2004-10-15 06:56:20] 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">
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30440&edit=1