Skip to content

[PHP 8.4] 「PHP 8.3.x から PHP 8.4.x への移行」の翻訳 #146

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
Nov 10, 2024
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
54 changes: 54 additions & 0 deletions appendices/migration84.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: d64e811eac61a5c7c744312d8bc6e2244de81488 Maintainer: KentarouTakeda Status: ready -->
<!-- Credits: KentarouTakeda -->
<appendix xml:id="migration84" xmlns="http://docbook.org/ns/docbook">
<title>PHP 8.3.x から PHP 8.4.x への移行</title>

<para>
この新しいマイナーバージョンには、たくさんの <link linkend="migration84.new-features">新機能</link> と <link linkend="migration84.incompatible">互換性のない変更がいくつか</link> あります。実運用環境の PHP をこのバージョンにあげる前に、これらの変更を必ずテストすべきです。
</para>

<para>
&manual.migration.seealso;
<link linkend="migration71">7.1.x</link>,
<link linkend="migration72">7.2.x</link>,
<link linkend="migration73">7.3.x</link>,
<link linkend="migration74">7.4.x</link>,
<link linkend="migration80">8.0.x</link>,
<link linkend="migration81">8.1.x</link>,
<link linkend="migration82">8.2.x</link>,
<link linkend="migration83">8.3.x</link>.
</para>

&appendices.migration84.new-features;
&appendices.migration84.new-classes;
&appendices.migration84.new-functions;
&appendices.migration84.constants;
&appendices.migration84.incompatible;
&appendices.migration84.deprecated;
&appendices.migration84.removed-extensions;
&appendices.migration84.other-changes;
&appendices.migration84.windows-support;

</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
340 changes: 340 additions & 0 deletions appendices/migration84/constants.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 8a6397d39aefd23c61d64aa4e9af919772541e2a Maintainer: KentarouTakeda Status: ready -->
<!-- Credits: KentarouTakeda -->
<sect1 xml:id="migration84.constants">
<title>新しいグローバル定数</title>

<sect2 xml:id="migration84.constants.core">
<title>PHP コア</title>

<simplelist>
<member>
<constant>PHP_OUTPUT_HANDLER_PROCESSED</constant>
</member>
<member>
<constant>PHP_SBINDIR</constant>
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.curl">
<title>cURL</title>

<simplelist>
<member>
<constant>CURL_HTTP_VERSION_3</constant>
</member>
<member>
<constant>CURL_HTTP_VERSION_3ONLY</constant>
</member>
<member>
<constant>CURL_TCP_KEEPCNT</constant>
</member>
<member>
<constant>CURLOPT_PREREQFUNCTION</constant>
</member>
<member>
<constant>CURL_PREREQFUNC_OK</constant>
</member>
<member>
<constant>CURL_PREREQFUNC_ABORT</constant>
</member>
<member>
<constant>CURLOPT_SERVER_RESPONSE_TIMEOUT</constant>
</member>
<member>
<constant>CURLOPT_DEBUGFUNCTION</constant>
</member>
<member>
<constant>CURLINFO_TEXT</constant>
</member>
<member>
<constant>CURLINFO_HEADER_IN</constant>
</member>
<member>
<constant>CURLINFO_DATA_IN</constant>
</member>
<member>
<constant>CURLINFO_DATA_OUT</constant>
</member>
<member>
<constant>CURLINFO_SSL_DATA_OUT</constant>
</member>
<member>
<constant>CURLINFO_SSL_DATA_IN</constant>
</member>
<member>
<constant>CURLINFO_POSTTRANSFER_TIME_T</constant>
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.intl">
<title>Intl</title>

<simplelist>
<member>
<constant>PATTERN</constant>
(<classname>IntlDateFormatter</classname>)
</member>
<member>
<constant>PROPERTY_IDS_UNARY_OPERATOR</constant>
(<classname>IntlChar</classname>)
</member>
<member>
<constant>PROPERTY_ID_COMPAT_MATH_START</constant>
<!-- for mathematical identifier profiling purpose -->
</member>
<member>
<constant>PROPERTY_ID_COMPAT_MATH_CONTINUE</constant>
<!-- for mathematical identifier profiling purpose -->
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.ldap">
<title>LDAP</title>

<simplelist>
<member>
<constant>LDAP_OPT_X_TLS_PROTOCOL_MAX</constant>
</member>
<member>
<constant>LDAP_OPT_X_TLS_PROTOCOL_TLS1_3</constant>
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.libxml">
<title>libxml</title>

<simplelist>
<member>
<constant>LIBXML_RECOVER</constant>
</member>
<member>
<constant>LIBXML_NO_XXE</constant>
これは、外部エンティティの読み込みを許可せず
エンティティの置換を行うために、
<constant>LIBXML_NOENT</constant>と一緒に使用されます。
この定数はlibxml2 2.13から利用可能です。
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.mysqli">
<title>MySQLi</title>

<simplelist>
<member>
<constant>MYSQLI_TYPE_VECTOR</constant>
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.openssl">
<title>OpenSSL</title>

<simplelist>
<member><constant>X509_PURPOSE_OCSP_HELPER</constant></member>
<member><constant>X509_PURPOSE_TIMESTAMP_SIGN</constant></member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.pcntl">
<title>PCNTL</title>

<simplelist>
<member>
<constant>SIGCKPT</constant> (DragonFlyBSDのみ)
</member>
<member>
<constant>SIGCKPTEXIT</constant> (DragonFlyBSDのみ)
</member>
<member>
<constant>WEXITED</constant>
</member>
<member>
<constant>WSTOPPED</constant>
</member>
<member>
<constant>WNOWAIT</constant>
</member>
<member>
<constant>P_ALL</constant>
</member>
<member>
<constant>P_PID</constant>
</member>
<member>
<constant>P_PGID</constant>
</member>
<member>
<constant>P_PIDFD</constant> (Linuxのみ)
</member>
<member>
<constant>P_UID</constant> (NetBSD/FreeBSDのみ)
</member>
<member>
<constant>P_GID</constant> (NetBSD/FreeBSDのみ)
</member>
<member>
<constant>P_SID</constant> (NetBSD/FreeBSDのみ)
</member>
<member>
<constant>P_JAILID</constant> (FreeBSDのみ)
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.pgsql">
<title>PGSQL</title>

<simplelist>
<member><constant>PGSQL_TUPLES_CHUNK</constant></member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.posix">
<title>POSIX</title>

<simplelist>
<member><constant>POSIX_SC_CHILD_MAX</constant></member>
<member><constant>POSIX_SC_CLK_TCK</constant></member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.sockets">
<title>Sockets</title>

<simpara>
サポートされている場合、次のソケットオプションが新たに定義されます:
</simpara>

<simplelist>
<member>
<constant>SO_EXCLUSIVEADDRUSE</constant> (Windowsのみ)
</member>
<member>
<constant>SOCK_CONN_DGRAM</constant> (NetBSDのみ)
</member>
<member>
<constant>SOCK_DCCP</constant> (NetBSDのみ)
</member>
<member>
<constant>TCP_SYNCNT</constant> (Linuxのみ)
</member>
<member>
<constant>SO_EXCLBIND</constant> (Solaris/Illumosのみ)
</member>
<member>
<constant>SO_NOSIGPIPE</constant>(macOSおよびFreeBSD)
</member>
<member>
<constant>SO_LINGER_SEC</constant> (macOSのみ)
</member>
<member>
<constant>IP_PORTRANGE</constant> (FreeBSD/NetBSD/OpenBSDのみ)
</member>
<member>
<constant>IP_PORTRANGE_DEFAULT</constant> (FreeBSD/NetBSD/OpenBSDのみ)
</member>
<member>
<constant>IP_PORTRANGE_HIGH</constant> (FreeBSD/NetBSD/OpenBSDのみ)
</member>
<member>
<constant>IP_PORTRANGE_LOW</constant> (FreeBSD/NetBSD/OpenBSDのみ)
</member>
<member>
<constant>SOCK_NONBLOCK</constant>
</member>
<member>
<constant>SOCK_CLOEXEC</constant>
</member>
<member>
<constant>SO_BINDTOIFINDEX</constant>
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.sodium">
<title>Sodium</title>

<simplelist>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS128L_KEYBYTES</constant>
</member>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS128L_NSECBYTES</constant>
</member>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS128L_NPUBBYTES</constant>
</member>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS128L_ABYTES</constant>
</member>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS256_KEYBYTES</constant>
</member>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS256_NSECBYTES</constant>
</member>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS256_NPUBBYTES</constant>
</member>
<member>
<constant>SODIUM_CRYPTO_AEAD_AEGIS256_ABYTES</constant>
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.tokenizer">
<title>Tokenizer</title>
<simplelist>
<member>
<constant>T_PUBLIC_SET</constant>
</member>
<member>
<constant>T_PROTECTED_SET</constant>
</member>
<member>
<constant>T_PRIVATE_SET</constant>
</member>
</simplelist>
</sect2>

<sect2 xml:id="migration84.constants.xml">
<title>XML</title>

<simplelist>
<member>
<constant>XML_OPTION_PARSE_HUGE</constant>
<function>xml_parse</function>や
<function>xml_parse_into_struct</function>
を使用して大きな入力を解析することを可能にします。
</member>
</simplelist>
</sect2>

</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Loading