reference/stream/functions/stream-set-chunk-size.xml
51a2b54c3d1723045b7f4729e464b4691750fa8a
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="function.stream-set-chunk-size" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>stream_set_chunk_size</refname>
...
...
@@ -11,8 +10,8 @@
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
12
<type>int</type><methodname>stream_set_chunk_size</methodname>
14
-
<methodparam><type>resource</type><parameter>fp</parameter></methodparam>
15
-
<methodparam><type>int</type><parameter>chunk_size</parameter></methodparam>
13
+
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
14
+
<methodparam><type>int</type><parameter>size</parameter></methodparam>
16
15
</methodsynopsis>
17
16
<para>
18
17
Set the stream chunk size.
...
...
@@ -23,7 +22,7 @@
23
22
&reftitle.parameters;
24
23
<variablelist>
25
24
<varlistentry>
26
-
<term><parameter>fp</parameter></term>
25
+
<term><parameter>stream</parameter></term>
27
26
<listitem>
28
27
<para>
29
28
The target stream.
...
...
@@ -31,7 +30,7 @@
31
30
</listitem>
32
31
</varlistentry>
33
32
<varlistentry>
34
-
<term><parameter>chunk_size</parameter></term>
33
+
<term><parameter>size</parameter></term>
35
34
<listitem>
36
35
<para>
37
36
The desired new chunk size.
...
...
@@ -46,22 +45,45 @@
46
45
<para>
47
46
Returns the previous chunk size on success.
48
47
</para>
49
-
<para>
50
-
Will return &false; if <parameter>chunk_size</parameter> is less than 1 or
51
-
greater than <constant>PHP_INT_MAX</constant>.
52
-
</para>
53
48
</refsect1>
54
49

55
50
<refsect1 role="errors">
56
51
&reftitle.errors;
57
52
<para>
58
-
Will emit an <constant>E_WARNING</constant> level error if <parameter>chunk_size</parameter>
53
+
A <classname>ValueError</classname> is thrown if <parameter>size</parameter>
59
54
is less than 1 or greater than <constant>PHP_INT_MAX</constant>.
60
55
</para>
61
56
</refsect1>
62
57

63
-
</refentry>
58
+
<refsect1 role="changelog"><!-- {{{ -->
59
+
&reftitle.changelog;
60
+
<para>
61
+
<informaltable>
62
+
<tgroup cols="2">
63
+
<thead>
64
+
<row>
65
+
<entry>&Version;</entry>
66
+
<entry>&Description;</entry>
67
+
</row>
68
+
</thead>
69
+
<tbody>
70
+
<row>
71
+
<entry>8.0.0</entry>
72
+
<entry>
73
+
A <classname>ValueError</classname> is now thrown if
74
+
<parameter>size</parameter> is less than 1 or greater than
75
+
<constant>PHP_INT_MAX</constant>. Previously, an
76
+
<constant>E_WARNING</constant> level error was emitted and &false; was
77
+
returned.
78
+
</entry>
79
+
</row>
80
+
</tbody>
81
+
</tgroup>
82
+
</informaltable>
83
+
</para>
84
+
</refsect1><!-- }}} -->
64
85

86
+
</refentry>
65
87
<!-- Keep this comment at the end of the file
66
88
Local variables:
67
89
mode: sgml
68
90