Date: 11/19/01
- Next message: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Previous message: eschmid <email protected>: "[PHP-DOC] Bug #14129 Updated: xml contains invalid formating?"
- In reply to: alan_k <email protected>: "[PHP-DOC] Bug #14130: xml in zlib.xml does not use CDATA for code"
- Next in thread: hholzgra <email protected>: "[PHP-DOC] Bug #14130 Updated: xml in zlib.xml does not use CDATA for code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 14130
Updated by: eschmid
Reported By: alan_k <email protected>
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.0CVS-2001-11-19
New Comment:
Not all examples have a CDATA section.
Previous Comments:
------------------------------------------------------------------------
[2001-11-19 20:53:01] alan_k <email protected>
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">
-<?php
+<programlisting role="php"><![CDATA[
+<?php
$filename = tempnam ('/tmp', 'zlibtest').'.gz';
-print "<html>\n<head></head>\n<body>\n<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 "</pre>\n</h1></body>\n</html>\n";
+print "</pre>\n</h1></body>\n</html>\n";
?>
- </programlisting>
+ ]]></programlisting>
</example>
</sect1>
</partintro>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14130&edit=1
- Next message: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Previous message: eschmid <email protected>: "[PHP-DOC] Bug #14129 Updated: xml contains invalid formating?"
- In reply to: alan_k <email protected>: "[PHP-DOC] Bug #14130: xml in zlib.xml does not use CDATA for code"
- Next in thread: hholzgra <email protected>: "[PHP-DOC] Bug #14130 Updated: xml in zlib.xml does not use CDATA for code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

