Skip to content

Commit 1e7b7da

Browse files
siwa32KentarouTakeda
andauthoredJan 13, 2025··
Document PHP 8.4 ext-hash changes を取り込み (#240)
* Document PHP 8.4 ext-hash changes を取り込み E_DEPRECATEDを発生させるコード例 hash_init('murmur3f', 0, "", ["seed" => "10"]);// E_DEPRECATED hash_init('murmur3f', 0, "", ["seed" => 10]);// OK * `E_DEPRECATED` の説明を日本語の言い回しを優先し訳を崩す --------- Co-authored-by: 武田 憲太郎 <takeda@youmind.jp>
1 parent 0c82f2c commit 1e7b7da

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed
 

‎reference/hash/functions/hash-init.xml

Lines changed: 23 additions & 7 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: 539a9823a805ac29cab7fa4baf3ae3a28116a2f5 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: fe4ff341037cab316f76ca414f9a1a8ecdc4abfd Maintainer: takagi Status: ready -->
44
<!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. -->
55
<!-- Credits: mumumu -->
66
<refentry xml:id="function.hash-init" xmlns="http://docbook.org/ns/docbook">
@@ -85,12 +85,24 @@
8585

8686
<refsect1 role="errors">
8787
&reftitle.errors;
88-
<para>
89-
<parameter>algo</parameter> が不明な場合や、
90-
暗号に適さないハッシュ関数の場合、
91-
または <parameter>key</parameter> が空の場合に
92-
<classname>ValueError</classname> がスローされます。
93-
</para>
88+
<itemizedlist>
89+
<listitem>
90+
<simpara>
91+
<parameter>algo</parameter> が不明な場合や、
92+
暗号に適さないハッシュ関数の場合、
93+
または <parameter>key</parameter> が空の場合に
94+
<classname>ValueError</classname> がスローされます。
95+
</simpara>
96+
</listitem>
97+
<listitem>
98+
<simpara>
99+
<parameter>options</parameter> に渡す設定値に型の誤りがあった場合
100+
<constant>E_DEPRECATED</constant> が発生するようになりました。
101+
予期しない解釈が行われる可能性があるためです。
102+
これは将来 <exceptionname>ValueError</exceptionname> になる予定です。
103+
</simpara>
104+
</listitem>
105+
</itemizedlist>
94106
</refsect1>
95107

96108
<refsect1 role="changelog">
@@ -105,6 +117,10 @@
105117
</row>
106118
</thead>
107119
<tbody>
120+
<row>
121+
<entry>8.4.0</entry>
122+
<entry>誤った型のオプションを渡すことは非推奨となりました。</entry>
123+
</row>
108124
<row>
109125
<entry>8.1.0</entry>
110126
<entry><parameter>options</parameter> パラメータが追加されました。</entry>

‎reference/hash/functions/hash-update.xml

Lines changed: 8 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: db22a7cfcbc3af221f67e228336ac3e2d62aaf2c Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 4c852f20e9039176dc75d7c0ce7eea61d6f909c7 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="function.hash-update" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -59,6 +59,13 @@
5959
</row>
6060
</thead>
6161
<tbody>
62+
<row>
63+
<entry>8.4.0</entry>
64+
<entry>
65+
戻り値の型が <type>bool</type> ではなく <type>true</type>
66+
になりました。
67+
</entry>
68+
</row>
6269
<row>
6370
<entry>7.2.0</entry>
6471
<entry>

0 commit comments

Comments
 (0)
Please sign in to comment.