File tree Expand file tree Collapse file tree 12 files changed +164
-79
lines changed Expand file tree Collapse file tree 12 files changed +164
-79
lines changed Original file line number Diff line number Diff line change 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" >
Original file line number Diff line number Diff line change 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 >
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
Original file line number Diff line number Diff line change 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 >
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 >
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 >
8177 </para >
8278 </refsect1 >
8379</refentry >
84-
8580<!-- Keep this comment at the end of the file
8681Local variables:
8782mode: sgml
Original file line number Diff line number Diff line change 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 >
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 >
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
2746Local variables:
2847mode: sgml
Original file line number Diff line number Diff line change 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 >
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 を追加できます。一般に、
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
88107Local variables:
89108mode: sgml
Original file line number Diff line number Diff line change 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 >
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
Original file line number Diff line number Diff line change 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 >
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);
Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 >
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 >
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 >
You can’t perform that action at this time.
0 commit comments