com doc/ja: PGSQL_LIBPQ_VERSION_STR is deprecated a s of PHP 8.0.0: appendices/migration80/ deprecated.xml reference/pgsql/constants.xml
[email protected] (Yoshinari Takaoka) Thu, 31 Dec 2020 00:56:40 +0000
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
Commit: 4a770042c4b1169bb319241ded3337d6233f7d1e Author: Yoshinari Takaoka <[email protected]> Thu, 31 Dec 2020 09:56:40 +0900 Parents: c76ee9b119db18395bc1c0cdf08abeec7401d18b Branches: master Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=4a770042c4b1169bb319241ded3337d6233f7d1e Log: PGSQL_LIBPQ_VERSION_STR is deprecated as of PHP 8.0.0 We also fix the constant names; the migration and UPGRADING got that wrong[1]. [1] <https://github.com/php/php-src/commit/2e854791afa6bbe1c93705047c82630f49f64325> Changed paths: M appendices/migration80/deprecated.xml M reference/pgsql/constants.xml Diff: diff --git a/appendices/migration80/deprecated.xml b/appendices/migration80/deprecated.xml index 95a52ee73d..808824b766 100644 --- a/appendices/migration80/deprecated.xml +++ b/appendices/migration80/deprecated.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: d7a2a4e3f7114ec8f0a71da90ed7e55b70fb77ec Maintainer: mumumu Status: ready --> +<!-- EN-Revision: fa7cb182a0ef04a3ecef2f9a0d6ae99e77201330 Maintainer: mumumu Status: ready --> <sect1 xml:id="migration80.deprecated"> <title>推奨されなくなる機能</title> @@ -108,9 +108,9 @@ function test(?A $a, $b) {} // 推奨される書き方 <itemizedlist> <listitem> <para> - 定数 <constant>PG_VERSION_STR</constant> の値は、 - <constant>PG_VERSION</constant> と同じになりました。 - よって、<constant>PG_VERSION_STR</constant> は推奨されません。 + 定数 <constant>PGSQL_LIBPQ_VERSION_STR</constant> の値は、 + <constant>PGSQL_LIBPQ_VERSION</constant> と同じになりました。 + よって、<constant>PGSQL_LIBPQ_VERSION_STR</constant> は推奨されません。 </para> </listitem> <listitem> diff --git a/reference/pgsql/constants.xml b/reference/pgsql/constants.xml index 8911d425dd..660d65165f 100644 --- a/reference/pgsql/constants.xml +++ b/reference/pgsql/constants.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: takagi Status: ready --> +<!-- EN-Revision: fa7cb182a0ef04a3ecef2f9a0d6ae99e77201330 Maintainer: takagi Status: ready --> <!-- Credits: mumumu --> <appendix xml:id="pgsql.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; @@ -25,7 +25,12 @@ </term> <listitem> <simpara> - 長い形式の libpq バージョン情報。コンパイラの情報も含めます。 + PHP 8.0.0 より前のバージョンでは、 + コンパイラの情報も含む 長い形式の libpq バージョン情報を表していました。 + PHP 8.0.0 以降は、 + この値は <constant>PGSQL_LIBPQ_VERSION</constant> の値と等しくなりました。 + よって、<constant>PGSQL_LIBPQ_VERSION_STR</constant> + を使うことは推奨されなくなっています。 </simpara> </listitem> </varlistentry>