Skip to content

Document PHP 8.4 ext-hash changes を取り込み #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions reference/hash/functions/hash-init.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 539a9823a805ac29cab7fa4baf3ae3a28116a2f5 Maintainer: takagi Status: ready -->
<!-- EN-Revision: fe4ff341037cab316f76ca414f9a1a8ecdc4abfd Maintainer: takagi Status: ready -->
<!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. -->
<!-- Credits: mumumu -->
<refentry xml:id="function.hash-init" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -85,12 +85,24 @@

<refsect1 role="errors">
&reftitle.errors;
<para>
<parameter>algo</parameter> が不明な場合や、
暗号に適さないハッシュ関数の場合、
または <parameter>key</parameter> が空の場合に
<classname>ValueError</classname> がスローされます。
</para>
<itemizedlist>
<listitem>
<simpara>
<parameter>algo</parameter> が不明な場合や、
暗号に適さないハッシュ関数の場合、
または <parameter>key</parameter> が空の場合に
<classname>ValueError</classname> がスローされます。
</simpara>
</listitem>
<listitem>
<simpara>
<parameter>options</parameter> に渡す設定値に型の誤りがあった場合
<constant>E_DEPRECATED</constant> が発生するようになりました。
予期しない解釈が行われる可能性があるためです。
これは将来 <exceptionname>ValueError</exceptionname> になる予定です。
</simpara>
</listitem>
</itemizedlist>
</refsect1>

<refsect1 role="changelog">
Expand All @@ -105,6 +117,10 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>誤った型のオプションを渡すことは非推奨となりました。</entry>
</row>
<row>
<entry>8.1.0</entry>
<entry><parameter>options</parameter> パラメータが追加されました。</entry>
Expand Down
9 changes: 8 additions & 1 deletion reference/hash/functions/hash-update.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: db22a7cfcbc3af221f67e228336ac3e2d62aaf2c Maintainer: takagi Status: ready -->
<!-- EN-Revision: 4c852f20e9039176dc75d7c0ce7eea61d6f909c7 Maintainer: takagi Status: ready -->
<!-- Credits: mumumu -->
<refentry xml:id="function.hash-update" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -59,6 +59,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
戻り値の型が <type>bool</type> ではなく <type>true</type>
になりました。
</entry>
</row>
<row>
<entry>7.2.0</entry>
<entry>
Expand Down