Bug #14130: xml in zlib.xml does not use CDATA for code

From: Date: Tue, 20 Nov 2001 01:53:02 +0000
Subject: Bug #14130: xml in zlib.xml does not use CDATA for code
Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-71003@lists.php.net to get a copy of this message
From: alan_k@hklc.com Operating system: linux PHP version: 4.0CVS-2001-11-19 PHP Bug Type: Documentation problem Bug description: xml in zlib.xml does not use CDATA for code 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> -- Edit bug report at: http://bugs.php.net/?id=14130&edit=1

« previous php.dev (#71003) next »