reference/stream/constants.xml
aab33d644359aba597e810e2fc0c0caa0d347c9c
...
...
@@ -14,7 +14,7 @@
14
14
</thead>
15
15
<tbody>
16
16
<row xml:id="constant.stream-filter-read">
17
-
<entry><constant>STREAM_FILTER_READ</constant> *</entry>
17
+
<entry><constant>STREAM_FILTER_READ</constant></entry>
18
18
<entry>
19
19
Used with <function>stream_filter_append</function> and
20
20
<function>stream_filter_prepend</function> to indicate
...
...
@@ -23,7 +23,7 @@
23
23
</entry>
24
24
</row>
25
25
<row xml:id="constant.stream-filter-write">
26
-
<entry><constant>STREAM_FILTER_WRITE</constant> *</entry>
26
+
<entry><constant>STREAM_FILTER_WRITE</constant></entry>
27
27
<entry>
28
28
Used with <function>stream_filter_append</function> and
29
29
<function>stream_filter_prepend</function> to indicate
...
...
@@ -32,27 +32,27 @@
32
32
</entry>
33
33
</row>
34
34
<row xml:id="constant.stream-filter-all">
35
-
<entry><constant>STREAM_FILTER_ALL</constant> *</entry>
35
+
<entry><constant>STREAM_FILTER_ALL</constant></entry>
36
36
<entry>
37
37
This constant is equivalent to
38
38
<code>STREAM_FILTER_READ | STREAM_FILTER_WRITE</code>
39
39
</entry>
40
40
</row>
41
41
<row xml:id="constant.psfs-pass-on">
42
-
<entry><constant>PSFS_PASS_ON</constant> *</entry>
42
+
<entry><constant>PSFS_PASS_ON</constant></entry>
43
43
<entry><literal>Return Code</literal> indicating that the
44
44
userspace filter returned buckets in <parameter>$out</parameter>.
45
45
</entry>
46
46
</row>
47
47
<row xml:id="constant.psfs-feed-me">
48
-
<entry><constant>PSFS_FEED_ME</constant> *</entry>
48
+
<entry><constant>PSFS_FEED_ME</constant></entry>
49
49
<entry><literal>Return Code</literal> indicating that the
50
50
userspace filter did not return buckets in <parameter>$out</parameter>
51
51
(i.e. No data available).
52
52
</entry>
53
53
</row>
54
54
<row xml:id="constant.psfs-err-fatal">
55
-
<entry><constant>PSFS_ERR_FATAL</constant> *</entry>
55
+
<entry><constant>PSFS_ERR_FATAL</constant></entry>
56
56
<entry><literal>Return Code</literal> indicating that the
57
57
userspace filter encountered an unrecoverable error
58
58
(i.e. Invalid data received).
...
...
@@ -85,32 +85,32 @@
85
85
</entry>
86
86
</row>
87
87
<row xml:id="constant.stream-client-async-connect">
88
-
<entry><constant>STREAM_CLIENT_ASYNC_CONNECT</constant> *</entry>
88
+
<entry><constant>STREAM_CLIENT_ASYNC_CONNECT</constant></entry>
89
89
<entry>Open client socket asynchronously. This option must be used
90
90
together with the <constant>STREAM_CLIENT_CONNECT</constant> flag.
91
91
Used with <function>stream_socket_client</function>.
92
92
</entry>
93
93
</row>
94
94
<row xml:id="constant.stream-client-connect">
95
-
<entry><constant>STREAM_CLIENT_CONNECT</constant> *</entry>
95
+
<entry><constant>STREAM_CLIENT_CONNECT</constant></entry>
96
96
<entry>Open client socket connection. Client sockets should always
97
97
include this flag. Used with <function>stream_socket_client</function>.
98
98
</entry>
99
99
</row>
100
100
<row xml:id="constant.stream-client-persistent">
101
-
<entry><constant>STREAM_CLIENT_PERSISTENT</constant> *</entry>
101
+
<entry><constant>STREAM_CLIENT_PERSISTENT</constant></entry>
102
102
<entry>Client socket opened with <function>stream_socket_client</function>
103
103
should remain persistent between page loads.
104
104
</entry>
105
105
</row>
106
106
<row xml:id="constant.stream-server-bind">
107
-
<entry><constant>STREAM_SERVER_BIND</constant> *</entry>
107
+
<entry><constant>STREAM_SERVER_BIND</constant></entry>
108
108
<entry>Tells a stream created with <function>stream_socket_server</function>
109
109
to bind to the specified target. Server sockets should always include this flag.
110
110
</entry>
111
111
</row>
112
112
<row xml:id="constant.stream-server-listen">
113
-
<entry><constant>STREAM_SERVER_LISTEN</constant> *</entry>
113
+
<entry><constant>STREAM_SERVER_LISTEN</constant></entry>
114
114
<entry>Tells a stream created with <function>stream_socket_server</function>
115
115
and bound using the <constant>STREAM_SERVER_BIND</constant> flag to start
116
116
listening on the socket. Connection-orientated transports (such as TCP)
...
...
@@ -119,7 +119,7 @@
119
119
</entry>
120
120
</row>
121
121
<row xml:id="constant.stream-notify-resolve">
122
-
<entry><constant>STREAM_NOTIFY_RESOLVE</constant> *</entry>
122
+
<entry><constant>STREAM_NOTIFY_RESOLVE</constant></entry>
123
123
<entry>
124
124
A remote address required for this stream has been resolved, or the resolution
125
125
failed. See <parameter>severity</parameter> for an indication of which happened.
...
...
@@ -169,7 +169,7 @@
169
169
</entry>
170
170
</row>
171
171
<row xml:id="constant.stream-notify-completed">
172
-
<entry><constant>STREAM_NOTIFY_COMPLETED</constant> *</entry>
172
+
<entry><constant>STREAM_NOTIFY_COMPLETED</constant></entry>
173
173
<entry>
174
174
There is no more data available on the stream.
175
175
</entry>
...
...
@@ -292,21 +292,21 @@
292
292
<entry><constant>STREAM_SHUT_RD</constant></entry>
293
293
<entry>
294
294
Used with <function>stream_socket_shutdown</function> to disable
295
-
further receptions. Added in PHP 5.2.1.
295
+
further receptions.
296
296
</entry>
297
297
</row>
298
298
<row xml:id="constant.stream-shut-wr">
299
299
<entry><constant>STREAM_SHUT_WR</constant></entry>
300
300
<entry>
301
301
Used with <function>stream_socket_shutdown</function> to disable
302
-
further transmissions. Added in PHP 5.2.1.
302
+
further transmissions.
303
303
</entry>
304
304
</row>
305
305
<row xml:id="constant.stream-shut-rdwr">
306
306
<entry><constant>STREAM_SHUT_RDWR</constant></entry>
307
307
<entry>
308
308
Used with <function>stream_socket_shutdown</function> to disable
309
-
further receptions and transmissions. Added in PHP 5.2.1.
309
+
further receptions and transmissions.
310
310
</entry>
311
311
</row>
312
312
<row xml:id="constant.stream-cast-for-select">
...
...
@@ -359,28 +359,39 @@
359
359
Used with <function>stream_metadata</function>, to specify <function>chmod</function> call.
360
360
</entry>
361
361
</row>
362
+
<row xml:id="constant.stream-buffer-none">
363
+
<entry><constant>STREAM_BUFFER_NONE</constant></entry>
364
+
<entry>
365
+
No buffering.
366
+
</entry>
367
+
</row>
368
+
<row xml:id="constant.stream-buffer-line">
369
+
<entry><constant>STREAM_BUFFER_LINE</constant></entry>
370
+
<entry>
371
+
Line buffering.
372
+
</entry>
373
+
</row>
374
+
<row xml:id="constant.stream-buffer-full">
375
+
<entry><constant>STREAM_BUFFER_FULL</constant></entry>
376
+
<entry>
377
+
Full buffering.
378
+
</entry>
379
+
</row>
362
380
</tbody>
363
381
</tgroup>
364
382
</informaltable>
365
383
</para>
366
384
<note>
367
385
<simpara>
368
-
The constants marked with <literal>*</literal> are just available since
369
-
PHP 5.0.0.
370
-
</simpara>
371
-
</note>
372
-
<note>
373
-
<simpara>
374
-
The constants marked with <literal>+</literal> are available since PHP
375
-
5.1.0 and are meant to be used with
386
+
The constants marked with <literal>+</literal> are meant to be used with
376
387
<function>stream_socket_pair</function>. Please note that some of these
377
388
constants might not be available in your system.
378
389
</simpara>
379
390
</note>
380
391
<note>
381
392
<simpara>
382
-
The <constant>STREAM_META_*</constant> constants are available since PHP
383
-
5.4.0 and are meant to be used with <function>stream_metadata</function>.
393
+
The <constant>STREAM_META_*</constant> constants
394
+
are meant to be used with <function>stream_metadata</function>.
384
395
</simpara>
385
396
</note>
386
397
</appendix>
387
398