Skip to content

Commit 4e3c215

Browse files
authored
PHP 8.4: stream_context_set_option() 2 param deprecation の翻訳 (#218)
1 parent 409316a commit 4e3c215

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

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

Lines changed: 28 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: f7b3a3a469091c4015c224356de4824eb99b9232 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: d5859815063bb6d3a0953c773920ce7425cf912e Maintainer: hirokawa Status: ready -->
44
<refentry xml:id="function.stream-context-set-option" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>stream_context_set_option</refname>
@@ -16,11 +16,15 @@
1616
<methodparam><type>string</type><parameter>option</parameter></methodparam>
1717
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
1818
</methodsynopsis>
19+
<para>
20+
以下のシグネチャは、PHP 8.4.0 以降で非推奨となりました。
21+
代わりに <function>stream_context_set_options</function> を使用してください。
1922
<methodsynopsis>
2023
<type>bool</type><methodname>stream_context_set_option</methodname>
2124
<methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam>
2225
<methodparam><type>array</type><parameter>options</parameter></methodparam>
2326
</methodsynopsis>
27+
</para>
2428
<simpara>
2529
指定されたストリームまたはコンテキストのオプションを設定します。
2630
<parameter>value</parameter> の内容が
@@ -97,8 +101,30 @@
97101
</para>
98102
</refsect1><!-- }}} -->
99103

100-
</refentry>
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.4.0</entry>
117+
<entry>
118+
2 引数のシグネチャは非推奨となりました。
119+
代わりに <function>stream_context_set_options</function> を使用してください。
120+
</entry>
121+
</row>
122+
</tbody>
123+
</tgroup>
124+
</informaltable>
125+
</refsect1>
101126

127+
</refentry>
102128
<!-- Keep this comment at the end of the file
103129
Local variables:
104130
mode: sgml

0 commit comments

Comments
 (0)