php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47011 Missing <? in xml_set_processing_instruction_handler
Submitted: 2009-01-05 16:44 UTC Modified: 2009-01-07 18:08 UTC
From: RQuadling at GMail dot com Assigned: bjori (profile)
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS: Windows XP Pro SP3
Private report: No CVE-ID: None
 [2009-01-05 16:44 UTC] RQuadling at GMail dot com
Description:
------------
In 
phpdoc/en/reference/xml/functions/xml_set_processing_instruction_hand
ler.xml, there is an informal example ...

   <informalexample>
    <programlisting>&lt;?<replaceable>target</replaceable> 
     <replaceable>data</replaceable>?>
    </programlisting>
   </informalexample>

When built using phd, this becomes ...

<div class="informalexample">
    <div class="example-contents"><?<span 
class="replaceable">target</span> 
     <span class="replaceable">data</span>?><br />
    </div>


The < is no longer escaped.

As such, online this looks like ...

target data?>

and when compiling the CHM you get an error ...

HHC3004: Warning: function.xml-set-processing-instruction-
handler.html : The HTML tag "?<span class="replaceable"" is not a 
valid HTML tag (it does not begin with an alphanumeric character).


The <? is coming through unescaped and IE/FF/Chrome think it is 
broken HTML and the CHM compiler is also just as confused.

This is not a duplicate of http://bugs.php.net/bug.php?id=34281


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-05 19:55 UTC] bjori@php.net
Crap. I broke it recently.
 [2009-01-07 18:08 UTC] bjori@php.net
This bug has been fixed in CVS. Since the websites are not directly
updated from the CVS server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.

No releases affected, fortunately.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC