php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #14130 xml in zlib.xml does not use CDATA for code
Submitted: 2001-11-19 20:53 UTC Modified: 2001-12-06 14:43 UTC
From: alan_k at hklc dot com Assigned: hholzgra (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.0CVS-2001-11-19 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alan_k at hklc dot com
New email:
PHP Version: OS:

 

 [2001-11-19 20:53 UTC] alan_k at hklc dot com
patch below

regards
alan

Index: zlib.xml
===================================================================
RCS file: /repository/phpdoc/en/functions/zlib.xml,v
retrieving revision 1.19
diff -u -r1.19 zlib.xml
--- zlib.xml    10 Nov 2001 21:49:42 -0000      1.19
+++ zlib.xml    20 Nov 2001 01:51:21 -0000
@@ -40,11 +40,11 @@
     </para>
     <example>
      <title>Small Zlib Example</title>
-<programlisting role="php">
-&lt;?php
+<programlisting role="php"><![CDATA[
+<?php
 
 $filename = tempnam ('/tmp', 'zlibtest').'.gz';
-print "&lt;html>\n&lt;head>&lt;/head>\n&lt;body>\n&lt;pre>\n";
+print "<html>\n<head></head>\n<body>\n<pre>\n";
 $s = "Only a test, test, test, test, test, test, test, test!\n";
 
 // open file for writing with maximum compression
@@ -72,10 +72,10 @@
         echo "Error with zlib functions!";
 }
 unlink($filename);
-print "&lt;/pre>\n&lt;/h1>&lt;/body>\n&lt;/html>\n";
+print "</pre>\n</h1></body>\n</html>\n";
 
 ?>
-     </programlisting>
+     ]]></programlisting>
     </example>
    </sect1>
   </partintro>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-19 22:01 UTC] eschmid@php.net
Not all examples have a CDATA section.
 [2001-11-20 04:13 UTC] hholzgra@php.net
all examples in en/functions/ up to mbstring.xml
have already been converted, the rest will follow
soon
 [2001-12-06 14:43 UTC] philip@php.net
hholzgra CDATA conversions are complete.  I labeled a few finishing touches as "Fix typos" when they weren't really true typos.  Sorry.  But, everything should be good now :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 22:01:26 2024 UTC