Skip to content

Commit c4d0507

Browse files
[PHP 8.4] mysqli拡張モジュール (#170)
* 英語版状態 * [PHP 8.4] mysqli拡張モジュール
1 parent 5f0376f commit c4d0507

File tree

7 files changed

+151
-19
lines changed

7 files changed

+151
-19
lines changed

reference/mysqli/constants.xml

Lines changed: 36 additions & 13 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: 6d3ade3a588d629e52a948ceb36bea814e47a4f3 Maintainer: takagi Status: working -->
3+
<!-- EN-Revision: 8fb5db5a5eea9940e1cb5ea599817da36d3f36dd Maintainer: takagi Status: working -->
44
<!-- CREDITS: hirokawa,mumumu -->
55
<appendix xml:id="mysqli.constants" xmlns="http://docbook.org/ns/docbook">
66
&reftitle.constants;
@@ -263,24 +263,24 @@
263263
</para>
264264
</listitem>
265265
</varlistentry>
266-
<!-- to be translated -->
267266
<varlistentry xml:id="constant.mysqli-store-result-copy_data">
268267
<term>
269268
<constant>MYSQLI_STORE_RESULT_COPY_DATA</constant>
270269
(<type>int</type>)
271270
</term>
272271
<listitem>
273272
<simpara>
274-
As of PHP 8.1, this constants no longer has any effect.
275-
Before PHP 8.1, this constant is used to copy results
276-
from the internal <literal>mysqlnd</literal> buffer
277-
into the PHP variables fetched.
278-
By default, <literal>mysqlnd</literal> will use a reference logic
279-
to avoid copying and duplicating results held in memory.
280-
For certain result sets, for example, result sets with many small rows,
281-
the copy approach can reduce the overall memory usage
282-
because PHP variables holding results may be released earlier.
283-
Available with <literal>mysqlnd</literal> only.
273+
PHP 8.1 以降、この定数はもはや意味をなしません。
274+
PHP 8.1 より前は、
275+
<literal>mysqlnd</literal> の内部バッファに格納されたフェッチ結果を
276+
PHP 変数へコピーするために使用されていました。
277+
デフォルトでは <literal>mysqlnd</literal> は、メモリ内の結果を
278+
重複させないようにコピーではなく参照ロジックを使用します。
279+
しかし、特定の結果セット、たとえば多数の小さな行を持つ結果セットでは、
280+
PHP 変数を個別で早期に解放できるコピー方式の方が
281+
全体的なメモリ使用量を削減る可能性があります。
282+
<literal>mysqlnd</literal> のみで利用可能です。
283+
PHP 8.4.0 で非推奨となりました。
284284
</simpara>
285285
</listitem>
286286
</varlistentry>
@@ -812,6 +812,17 @@
812812
</para>
813813
</listitem>
814814
</varlistentry>
815+
<varlistentry xml:id="constant.mysqli-type-vector">
816+
<term>
817+
<constant>MYSQLI_TYPE_VECTOR</constant>
818+
(<type>int</type>)
819+
</term>
820+
<listitem>
821+
<para>
822+
フィールドは <literal>VECTOR</literal> と定義されています。
823+
</para>
824+
</listitem>
825+
</varlistentry>
815826
<varlistentry xml:id="constant.mysqli-need-data">
816827
<term><constant>MYSQLI_NEED_DATA</constant></term>
817828
<listitem>
@@ -849,6 +860,7 @@
849860
</term>
850861
<listitem>
851862
<para>
863+
PHP 8.4.0 で削除されました。
852864
</para>
853865
</listitem>
854866
</varlistentry>
@@ -879,6 +891,7 @@
879891
</term>
880892
<listitem>
881893
<para>
894+
PHP 8.4.0 で削除されました。
882895
</para>
883896
</listitem>
884897
</varlistentry>
@@ -899,6 +912,7 @@
899912
</term>
900913
<listitem>
901914
<para>
915+
PHP 8.4.0 で削除されました。
902916
</para>
903917
</listitem>
904918
</varlistentry>
@@ -1006,6 +1020,7 @@
10061020
<listitem>
10071021
<para>
10081022
権限テーブルをリフレッシュします。
1023+
PHP 8.4.0 で非推奨となりました。
10091024
</para>
10101025
</listitem>
10111026
</varlistentry>
@@ -1018,6 +1033,7 @@
10181033
<para>
10191034
ログをフラッシュします。<acronym>SQL</acronym> 文
10201035
<literal>FLUSH LOGS</literal> を実行するのと同じです。
1036+
PHP 8.4.0 で非推奨となりました。
10211037
</para>
10221038
</listitem>
10231039
</varlistentry>
@@ -1030,6 +1046,7 @@
10301046
<para>
10311047
テーブルキャッシュをフラッシュします。<acronym>SQL</acronym> 文
10321048
<literal>FLUSH TABLES</literal> を実行するのと同じです。
1049+
PHP 8.4.0 で非推奨となりました。
10331050
</para>
10341051
</listitem>
10351052
</varlistentry>
@@ -1042,6 +1059,7 @@
10421059
<para>
10431060
ホストキャッシュをフラッシュします。<acronym>SQL</acronym> 文
10441061
<literal>FLUSH HOSTS</literal> を実行するのと同じです。
1062+
PHP 8.4.0 で非推奨となりました。
10451063
</para>
10461064
</listitem>
10471065
</varlistentry>
@@ -1053,7 +1071,7 @@
10531071
<listitem>
10541072
<para>
10551073
<constant>MYSQLI_REFRESH_SLAVE</constant> のエイリアスです。
1056-
PHP 8.1.0 以降で利用可能です。
1074+
PHP 8.1.0 以降で利用可能です。PHP 8.4.0 で非推奨となりました。
10571075
</para>
10581076
</listitem>
10591077
</varlistentry>
@@ -1066,6 +1084,7 @@
10661084
<para>
10671085
状態変数をリセットします。<acronym>SQL</acronym> 文
10681086
<literal>FLUSH STATUS</literal> を実行するのと同じです。
1087+
PHP 8.4.0 で非推奨となりました。
10691088
</para>
10701089
</listitem>
10711090
</varlistentry>
@@ -1077,6 +1096,7 @@
10771096
<listitem>
10781097
<para>
10791098
スレッドキャッシュをフラッシュします。
1099+
PHP 8.4.0 で非推奨となりました。
10801100
</para>
10811101
</listitem>
10821102
</varlistentry>
@@ -1091,6 +1111,7 @@
10911111
マスタサーバーの情報をリセットしてスレーブを再起動します。
10921112
<acronym>SQL</acronym> 文
10931113
<literal>RESET SLAVE</literal> を実行するのと同じです。
1114+
PHP 8.4.0 で非推奨となりました。
10941115
</para>
10951116
</listitem>
10961117
</varlistentry>
@@ -1105,6 +1126,7 @@
11051126
バイナリログインデックスにあるバイナリログファイルを削除してインデックスファイルを切り詰めます。
11061127
<acronym>SQL</acronym> 文
11071128
<literal>RESET MASTER</literal> を実行するのと同じです。
1129+
PHP 8.4.0 で非推奨となりました。
11081130
</para>
11091131
</listitem>
11101132
</varlistentry>
@@ -1117,6 +1139,7 @@
11171139
<listitem>
11181140
<simpara>
11191141
Closes and reopens the backup log files.
1142+
PHP 8.4.0 で非推奨となりました。
11201143
</simpara>
11211144
</listitem>
11221145
</varlistentry>

reference/mysqli/mysqli/kill.xml

Lines changed: 29 additions & 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: 63b99082ef83eade08151f8cb528246fded81db9 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 7ce9e1661da0479fe49641e3da2c2761cf029d5c Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="mysqli.kill" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -9,6 +9,10 @@
99
<refpurpose>サーバーに MySQL スレッドの停止を問い合わせる</refpurpose>
1010
</refnamediv>
1111

12+
<refsynopsisdiv>
13+
&warn.deprecated.function-8-4-0;
14+
</refsynopsisdiv>
15+
1216
<refsect1 role="description">
1317
&reftitle.description;
1418
<para>&style.oop;</para>
@@ -55,6 +59,30 @@
5559
&mysqli.conditionalexception;
5660
</refsect1>
5761

62+
<refsect1 role="changelog">
63+
&reftitle.changelog;
64+
<informaltable>
65+
<tgroup cols="2">
66+
<thead>
67+
<row>
68+
<entry>&Version;</entry>
69+
<entry>&Description;</entry>
70+
</row>
71+
</thead>
72+
<tbody>
73+
<row>
74+
<entry>8.4.0</entry>
75+
<entry>
76+
<methodname>mysqli::kill</methodname> と
77+
<function>mysqli_kill</function> は非推奨となりました。代わりに
78+
<literal>KILL</literal> SQL コマンドを使用してください。
79+
</entry>
80+
</row>
81+
</tbody>
82+
</tgroup>
83+
</informaltable>
84+
</refsect1>
85+
5886
<refsect1 role="examples">
5987
&reftitle.examples;
6088
<example>

reference/mysqli/mysqli/ping.xml

Lines changed: 30 additions & 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: 63b99082ef83eade08151f8cb528246fded81db9 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 7ce9e1661da0479fe49641e3da2c2761cf029d5c Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="mysqli.ping" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -9,6 +9,10 @@
99
<refpurpose>サーバーとの接続をチェックし、もし切断されている場合は再接続を試みる</refpurpose>
1010
</refnamediv>
1111

12+
<refsynopsisdiv>
13+
&warn.deprecated.function-8-4-0;
14+
</refsynopsisdiv>
15+
1216
<refsect1 role="description">
1317
&reftitle.description;
1418
<para>&style.oop;</para>
@@ -60,6 +64,31 @@
6064
&mysqli.conditionalexception;
6165
</refsect1>
6266

67+
<refsect1 role="changelog">
68+
&reftitle.changelog;
69+
<informaltable>
70+
<tgroup cols="2">
71+
<thead>
72+
<row>
73+
<entry>&Version;</entry>
74+
<entry>&Description;</entry>
75+
</row>
76+
</thead>
77+
<tbody>
78+
<row>
79+
<entry>8.4.0</entry>
80+
<entry>
81+
<methodname>mysqli::ping</methodname> と
82+
<function>mysqli_ping</function> は非推奨となりました。
83+
<literal>reconnect</literal> 機能は
84+
PHP 8.2.0 で廃止されたため、この関数はもはや必要ありません。
85+
</entry>
86+
</row>
87+
</tbody>
88+
</tgroup>
89+
</informaltable>
90+
</refsect1>
91+
6392
<refsect1 role="examples">
6493
&reftitle.examples;
6594
<example>

reference/mysqli/mysqli/refresh.xml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 035c126c0393fe154bac46e2c3c489ebadce48a5 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 7ce9e1661da0479fe49641e3da2c2761cf029d5c Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="mysqli.refresh" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
77
<refname>mysqli::refresh</refname>
88
<refname>mysqli_refresh</refname>
99
<refpurpose>リフレッシュする</refpurpose>
1010
</refnamediv>
11+
12+
<refsynopsisdiv>
13+
&warn.deprecated.function-8-4-0;
14+
</refsynopsisdiv>
1115

1216
<refsect1 role="description">
1317
&reftitle.description;
@@ -56,6 +60,30 @@
5660
</para>
5761
</refsect1>
5862

63+
<refsect1 role="changelog">
64+
&reftitle.changelog;
65+
<informaltable>
66+
<tgroup cols="2">
67+
<thead>
68+
<row>
69+
<entry>&Version;</entry>
70+
<entry>&Description;</entry>
71+
</row>
72+
</thead>
73+
<tbody>
74+
<row>
75+
<entry>8.4.0</entry>
76+
<entry>
77+
<methodname>mysqli::refresh</methodname> と
78+
<function>mysqli_refresh</function> は非推奨となりました。代わりに
79+
<literal>FLUSH</literal> SQL コマンドを使用してください。
80+
</entry>
81+
</row>
82+
</tbody>
83+
</tgroup>
84+
</informaltable>
85+
</refsect1>
86+
5987
<refsect1 role="seealso">
6088
&reftitle.seealso;
6189
<para>

reference/mysqli/mysqli/store-result.xml

Lines changed: 24 additions & 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: 90953eddaa06c6c83faf0dea76c241dfafeaa2a1 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 699e596aaba256f7c3c81be8bb309e12fbd03ef4 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="mysqli.store-result" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -99,6 +99,29 @@
9999
&mysqli.conditionalexception;
100100
</refsect1>
101101

102+
<refsect1 role="changelog">
103+
&reftitle.changelog;
104+
<informaltable>
105+
<tgroup cols="2">
106+
<thead>
107+
<row>
108+
<entry>&Version;</entry>
109+
<entry>&Description;</entry>
110+
</row>
111+
</thead>
112+
<tbody>
113+
<row>
114+
<entry>8.4.0</entry>
115+
<entry>
116+
<parameter>mode</parameter> パラメータの指定は非推奨となりました。
117+
PHP 8.1 以降では、このパラメータを指定しても意味はありません。
118+
</entry>
119+
</row>
120+
</tbody>
121+
</tgroup>
122+
</informaltable>
123+
</refsect1>
124+
102125
<refsect1 role="examples">
103126
&reftitle.examples;
104127
<para>

reference/mysqli/mysqli/thread-id.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: 7e5d0d1bb69180c9de1992edf9613215c975fa57 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 1afd3581fea176162adacef6dd692dfc114410f3 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="mysqli.thread-id" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>

reference/mysqli/mysqli_stmt/attr-set.xml

Lines changed: 2 additions & 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: 61374bbe228e8e9c55a24aba59a1e2bb2a871148 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 4683a073bf428da8cd06a9bc428a131292c42ba3 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55

66
<refentry xml:id="mysqli-stmt.attr-set" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -71,6 +71,7 @@
7171
カーソルの使用時にサーバーからいちどに取得する行数。
7272
<parameter>value</parameter> に指定できる値の範囲は
7373
1 から unsigned long の最大値までで、デフォルトは 1 です。
74+
PHP 8.4.0 で削除されました。
7475
</entry>
7576
</row>
7677
</tbody>

0 commit comments

Comments
 (0)