Skip to content

Commit c045a04

Browse files
committed
[reference/stream] sync with en
1 parent 908dd2c commit c045a04

12 files changed

+164
-79
lines changed

reference/stream/constants.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 2ef96ea623c11a916d854b2f807ad81c948e4784 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 561e36d646b8e48dc53a910234ee9f30cba147d0 Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: takagi,mumumu -->
55

66
<appendix xml:id="stream.constants" xmlns="http://docbook.org/ns/docbook">

reference/stream/functions/stream-bucket-append.xml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 54b06426830ad1c96a042a848f40916b42f30d48 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 32caa89e81d180f209425159e2be2f243a3e12cc Maintainer: takagi Status: ready -->
44
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
55
<refentry xml:id="function.stream-bucket-append" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -14,13 +14,33 @@
1414
<methodsynopsis>
1515
<type>void</type><methodname>stream_bucket_append</methodname>
1616
<methodparam><type>resource</type><parameter>brigade</parameter></methodparam>
17-
<methodparam><type>object</type><parameter>bucket</parameter></methodparam>
17+
<methodparam><type>StreamBucket</type><parameter>bucket</parameter></methodparam>
1818
</methodsynopsis>
1919

2020
&warn.undocumented.func;
2121

2222
</refsect1>
2323

24+
<refsect1 role="changelog">
25+
&reftitle.changelog;
26+
<informaltable>
27+
<tgroup cols="2">
28+
<thead>
29+
<row>
30+
<entry>&Version;</entry>
31+
<entry>&Description;</entry>
32+
</row>
33+
</thead>
34+
<tbody>
35+
<row>
36+
<entry>8.4.0</entry>
37+
<entry>&stream.bucket.param;</entry>
38+
</row>
39+
</tbody>
40+
</tgroup>
41+
</informaltable>
42+
</refsect1>
43+
2444
</refentry>
2545

2646
<!-- Keep this comment at the end of the file

reference/stream/functions/stream-bucket-make-writeable.xml

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 3561c702e7bea3265a72bbd598d0ef079db60145 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 32caa89e81d180f209425159e2be2f243a3e12cc Maintainer: takagi Status: ready -->
44
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
55
<refentry xml:id="function.stream-bucket-make-writeable" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -9,10 +9,11 @@
99
操作する brigade から bucket オブジェクトを返す
1010
</refpurpose>
1111
</refnamediv>
12+
1213
<refsect1 role="description">
1314
&reftitle.description;
1415
<methodsynopsis>
15-
<type class="union"><type>object</type><type>null</type></type><methodname>stream_bucket_make_writeable</methodname>
16+
<type class="union"><type>StreamBucket</type><type>null</type></type><methodname>stream_bucket_make_writeable</methodname>
1617
<methodparam><type>resource</type><parameter>brigade</parameter></methodparam>
1718
</methodsynopsis>
1819
<para>
@@ -42,35 +43,30 @@
4243
<refsect1 role="returnvalues">
4344
&reftitle.returnvalues;
4445
<para>
45-
以下に示すプロパティを持つ bucket オブジェクトを返すか、
46-
&null; を返します。
47-
<variablelist>
48-
<varlistentry>
49-
<term>
50-
<property>data</property>
51-
(<type>string</type>)
52-
</term>
53-
<listitem>
54-
<para>
55-
<parameter>data</parameter> <literal>bucket</literal> bucket に含まれる現在の文字列。
56-
</para>
57-
</listitem>
58-
</varlistentry>
59-
<varlistentry>
60-
<term>
61-
<property>datalen</property>
62-
(<type>integer</type>)
63-
</term>
64-
<listitem>
65-
<para>
66-
<parameter>datalen</parameter> <literal>bucket</literal> bucket に含まれる文字列の長さ。
67-
</para>
68-
</listitem>
69-
</varlistentry>
70-
</variablelist>
46+
bucket オブジェクトを返すか、&null; を返します。
7147
</para>
7248
</refsect1>
7349

50+
<refsect1 role="changelog">
51+
&reftitle.changelog;
52+
<informaltable>
53+
<tgroup cols="2">
54+
<thead>
55+
<row>
56+
<entry>&Version;</entry>
57+
<entry>&Description;</entry>
58+
</row>
59+
</thead>
60+
<tbody>
61+
<row>
62+
<entry>8.4.0</entry>
63+
<entry>&stream.bucket.return;</entry>
64+
</row>
65+
</tbody>
66+
</tgroup>
67+
</informaltable>
68+
</refsect1>
69+
7470
<refsect1 role="seealso">
7571
&reftitle.seealso;
7672
<para>
@@ -81,7 +77,6 @@
8177
</para>
8278
</refsect1>
8379
</refentry>
84-
8580
<!-- Keep this comment at the end of the file
8681
Local variables:
8782
mode: sgml

reference/stream/functions/stream-bucket-new.xml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 32caa89e81d180f209425159e2be2f243a3e12cc Maintainer: mumumu Status: ready -->
44
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
55
<refentry xml:id="function.stream-bucket-new" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -12,7 +12,7 @@
1212
<refsect1 role="description">
1313
&reftitle.description;
1414
<methodsynopsis>
15-
<type>object</type><methodname>stream_bucket_new</methodname>
15+
<type>StreamBucket</type><methodname>stream_bucket_new</methodname>
1616
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
1717
<methodparam><type>string</type><parameter>buffer</parameter></methodparam>
1818
</methodsynopsis>
@@ -21,8 +21,27 @@
2121

2222
</refsect1>
2323

24-
</refentry>
24+
<refsect1 role="changelog">
25+
&reftitle.changelog;
26+
<informaltable>
27+
<tgroup cols="2">
28+
<thead>
29+
<row>
30+
<entry>&Version;</entry>
31+
<entry>&Description;</entry>
32+
</row>
33+
</thead>
34+
<tbody>
35+
<row>
36+
<entry>8.4.0</entry>
37+
<entry>&stream.bucket.return;</entry>
38+
</row>
39+
</tbody>
40+
</tgroup>
41+
</informaltable>
42+
</refsect1>
2543

44+
</refentry>
2645
<!-- Keep this comment at the end of the file
2746
Local variables:
2847
mode: sgml

reference/stream/functions/stream-bucket-prepend.xml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 54b06426830ad1c96a042a848f40916b42f30d48 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 32caa89e81d180f209425159e2be2f243a3e12cc Maintainer: takagi Status: ready -->
44
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
55
<refentry xml:id="function.stream-bucket-prepend" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -14,7 +14,7 @@
1414
<methodsynopsis>
1515
<type>void</type><methodname>stream_bucket_prepend</methodname>
1616
<methodparam><type>resource</type><parameter>brigade</parameter></methodparam>
17-
<methodparam><type>object</type><parameter>bucket</parameter></methodparam>
17+
<methodparam><type>StreamBucket</type><parameter>bucket</parameter></methodparam>
1818
</methodsynopsis>
1919
<para>
2020
この関数を呼ぶと、bucket brigade の先頭に bucket を追加できます。一般に、
@@ -52,6 +52,26 @@
5252
</para>
5353
</refsect1>
5454

55+
<refsect1 role="changelog">
56+
&reftitle.changelog;
57+
<informaltable>
58+
<tgroup cols="2">
59+
<thead>
60+
<row>
61+
<entry>&Version;</entry>
62+
<entry>&Description;</entry>
63+
</row>
64+
</thead>
65+
<tbody>
66+
<row>
67+
<entry>8.4.0</entry>
68+
<entry>&stream.bucket.param;</entry>
69+
</row>
70+
</tbody>
71+
</tgroup>
72+
</informaltable>
73+
</refsect1>
74+
5575
<refsect1 role="examples">
5676
&reftitle.examples;
5777
<para>
@@ -83,7 +103,6 @@ print file_get_contents('php://filter/read=test/resource=foo');
83103
</para>
84104
</refsect1>
85105
</refentry>
86-
87106
<!-- Keep this comment at the end of the file
88107
Local variables:
89108
mode: sgml

reference/stream/functions/stream-context-create.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 29cf1ea0ec2d4ee04f723da66461a2f613e0876f Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: c49274b06187db6cf96df8a48e5a3b92d1b56b16 Maintainer: hirokawa Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="function.stream-context-create" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -94,8 +94,9 @@
9494
$opts = [
9595
'http' => [
9696
'method' => "GET",
97-
// Use newline \n to separate multiple headers
98-
'header' => "Accept-language: en\nCookie: foo=bar",
97+
// 複数のヘッダを分けるのに CRLF \r\n を使います
98+
'header' => "Accept-language: en\r\n" .
99+
"Cookie: foo=bar",
99100
]
100101
];
101102

reference/stream/functions/stream-context-get-default.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 6a5b227850bbad1ec81fd52b6a08e12e3f2c03ac Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 3abd17e61d5022d503604cc06894254e3281acf5 Maintainer: takagi Status: ready -->
44
<refentry xml:id="function.stream-context-get-default" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>stream_context_get_default</refname>
@@ -78,24 +78,24 @@
7878
<programlisting role="php">
7979
<![CDATA[
8080
<?php
81-
$default_opts = array(
82-
'http'=>array(
83-
'method'=>"GET",
84-
'header'=>"Accept-language: en\r\n" .
85-
"Cookie: foo=bar",
86-
'proxy'=>"tcp://10.54.1.39:8000"
87-
)
88-
);
81+
$default_opts = [
82+
'http' => [
83+
'method' => "GET",
84+
'header' => "Accept-language: en\r\n" .
85+
"Cookie: foo=bar",
86+
'proxy' => "tcp://10.54.1.39:8000",
87+
]
88+
];
8989
9090
91-
$alternate_opts = array(
92-
'http'=>array(
93-
'method'=>"POST",
94-
'header'=>"Content-type: application/x-www-form-urlencoded\r\n" .
95-
"Content-length: " . strlen("baz=bomb"),
96-
'content'=>"baz=bomb"
97-
)
98-
);
91+
$alternate_opts = [
92+
'http' => [
93+
'method' => "POST",
94+
'header' => "Content-type: application/x-www-form-urlencoded\r\n" .
95+
"Content-length: " . strlen("baz=bomb"),
96+
'content' => "baz=bomb",
97+
]
98+
];
9999
100100
$default = stream_context_get_default($default_opts);
101101
$alternate = stream_context_create($alternate_opts);

reference/stream/functions/stream-context-set-default.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f3aca6e5fd6dee9473aa034a1e2214daaf2ad070 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 3abd17e61d5022d503604cc06894254e3281acf5 Maintainer: takagi Status: ready -->
44
<refentry xml:id="function.stream-context-set-default" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>stream_context_set_default</refname>
@@ -59,14 +59,14 @@
5959
<programlisting role="php">
6060
<![CDATA[
6161
<?php
62-
$default_opts = array(
63-
'http'=>array(
64-
'method'=>"GET",
65-
'header'=>"Accept-language: en\r\n" .
66-
"Cookie: foo=bar",
67-
'proxy'=>"tcp://10.54.1.39:8000"
68-
)
69-
);
62+
$default_opts = [
63+
'http' => [
64+
'method' => "GET",
65+
'header' => "Accept-language: en\r\n" .
66+
"Cookie: foo=bar",
67+
'proxy' => "tcp://10.54.1.39:8000",
68+
]
69+
];
7070
7171
$default = stream_context_set_default($default_opts);
7272
@@ -80,7 +80,7 @@ readfile('http://www.example.com');
8080
</example><!-- }}} -->
8181
</para>
8282
</refsect1><!-- }}} -->
83-
83+
8484
<refsect1 role="seealso"><!-- {{{ -->
8585
&reftitle.seealso;
8686
<para>

reference/stream/functions/stream-notification-callback.xml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 8859c8b96cd9e80652813f7bcf561432a5e9f934 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 561e36d646b8e48dc53a910234ee9f30cba147d0 Maintainer: takagi Status: ready -->
44

55
<refentry xml:id="function.stream-notification-callback" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -40,7 +40,7 @@
4040
<term><parameter>notification_code</parameter></term>
4141
<listitem>
4242
<para>
43-
<constant>STREAM_NOTIFY_*</constant> 通知定数のひとつ。
43+
<constant>STREAM_NOTIFY_<replaceable>*</replaceable></constant> 通知定数のひとつ。
4444
</para>
4545
</listitem>
4646
</varlistentry>
@@ -101,6 +101,29 @@
101101
</para>
102102
</refsect1><!-- }}} -->
103103

104+
<refsect1 role="changelog">
105+
&reftitle.changelog;
106+
<informaltable>
107+
<tgroup cols="2">
108+
<thead>
109+
<row>
110+
<entry>&Version;</entry>
111+
<entry>&Description;</entry>
112+
</row>
113+
</thead>
114+
<tbody>
115+
<row>
116+
<entry>8.3.0</entry>
117+
<entry>
118+
<constant>STREAM_NOTIFY_COMPLETED</constant> のサポートが実装されました。
119+
これより前のバージョンでは、PHP はこの通知を決して発生させませんでした。
120+
</entry>
121+
</row>
122+
</tbody>
123+
</tgroup>
124+
</informaltable>
125+
</refsect1>
126+
104127
<refsect1 role="examples"><!-- {{{ -->
105128
&reftitle.examples;
106129
<para>

0 commit comments

Comments
 (0)