appendices/filters.xml
f80105b4fc1196bd8d5fecb98d686b580b1ff65d
...
...
@@ -130,13 +130,13 @@ $fp = fopen('php://output', 'w');
130
130
stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, "<b><i><u>");
131
131
fwrite($fp, "<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
132
132
fclose($fp);
133
-
/* Outputs: <b>bolded text</b> enlarged to a level 1 heading */
133
+
/* Outputs: bolded text enlarged to a level 1 heading */
134
134

135
135
$fp = fopen('php://output', 'w');
136
136
stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, array('b','i','u'));
137
137
fwrite($fp, "<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
138
138
fclose($fp);
139
-
/* Outputs: <b>bolded text</b> enlarged to a level 1 heading */
139
+
/* Outputs: bolded text enlarged to a level 1 heading */
140
140
?>
141
141
]]>
142
142
</programlisting>
...
...
@@ -206,7 +206,7 @@ fclose($fp);
206
206
<title>convert.quoted-printable-encode and convert.quoted-printable-decode</title>
207
207
<simpara>
208
208
Use of the decode version of this filter is equivalent to processing all stream
209
-
data through the <function>quoted_printable_decode</function> functions.
209
+
data through the <function>quoted_printable_decode</function> function.
210
210
There is no function equivalent to <literal>convert.quoted-printable-encode</literal>.
211
211
<literal>convert.quoted-printable-encode</literal> supports parameters given as
212
212
an associative array. In addition to the parameters supported by
...
...
@@ -302,7 +302,7 @@ fclose($fp);
302
302
<parameter>window</parameter> is the base-2 log of the compression loopback window size.
303
303
Higher values (up to 15 -- 32768 bytes) yield better compression at a cost of memory,
304
304
while lower values (down to 9 -- 512 bytes) yield worse compression in a smaller memory footprint.
305
-
Default <parameter>window</parameter> size is currently <constant>15</constant>.
305
+
Default <parameter>window</parameter> size is currently <literal>15</literal>.
306
306

307
307
<parameter>memory</parameter> is a scale indicating how much work memory should be allocated.
308
308
Valid values range from 1 (minimal allocation) to 9 (maximum allocation). This memory allocation
...
...
@@ -317,10 +317,8 @@ fclose($fp);
317
317
</note>
318
318

319
319
<simpara>
320
-
zlib.* compression filters are available with PHP as of version <literal>5.1.0</literal> if
321
-
<link linkend="ref.zlib">zlib</link> support is enabled. They are also available as a backport in version
322
-
<literal>5.0.x</literal> by installing the <link xlink:href="&url.pecl.package;zlib_filter">zlib_filter</link>
323
-
package from <link xlink:href="&url.pecl;">PECL</link>.
320
+
zlib.* compression filters are available if
321
+
<link linkend="ref.zlib">zlib</link> support is enabled.
324
322
</simpara>
325
323

326
324
<example>
...
...
@@ -421,10 +419,8 @@ The compressed file is 56 bytes long.
421
419
</simpara>
422
420

423
421
<simpara>
424
-
bzip2.* compression filters are available with PHP as of version <literal>5.1.0</literal> if
425
-
<link linkend="ref.bzip2">bz2</link> support is enabled. They are also available as a backport in version
426
-
<literal>5.0.x</literal> by installing the <link xlink:href="&url.pecl.package;bz2_filter">bz2_filter</link>
427
-
package from <link xlink:href="&url.pecl;">PECL</link>.
422
+
bzip2.* compression filters are available if
423
+
<link linkend="ref.bzip2">bz2</link> support is enabled.
428
424
</simpara>
429
425

430
426
<example>
...
...
@@ -448,7 +444,7 @@ echo "The compressed file is " . filesize('LICENSE.compressed') . " bytes long.\
448
444

449
445
/* Generates output:
450
446

451
-
The original text is 3288 characters long.
447
+
The original file is 3288 bytes long.
452
448
The compressed file is 1488 bytes long.
453
449

454
450
*/
...
...
@@ -559,7 +555,7 @@ echo $data;
559
555
</programlisting>
560
556
</example>
561
557
<example>
562
-
<title>Encrypt file using AES-128 CBC with SHA256 HMAC in PHP 5.5+</title>
558
+
<title>Encrypt file using AES-128 CBC with SHA256 HMAC</title>
563
559
<programlisting role="php">
564
560
<![CDATA[
565
561
<?php
566
562