doc-en と同期(PDO・mysqli の文法修正、session の PHP 8.4 非推奨注記ほか・16ファイル) - #421
Merged
KentarouTakeda merged 6 commits intoJul 31, 2026
Merged
Conversation
php/doc-en@1cc1b81 (#5712) の追従。多くは <para> から <simpara> への 変更だが、以下は原文の記述内容が変わっている。 - reference/pdo/constants.xml: PDO::ATTR_STATEMENT_CLASS の説明を差し替え。 クラス名だけでなく、コンストラクタ引数の配列も設定する旨と、配列の 第1要素がクラス名・第2要素が引数の配列である旨を追加 - reference/mysqli/configure.xml: サポート表に「8.2.0 以降」の行を追加し、 既存行を「5.4.0 から 8.1.x まで」に変更。拡張モジュールとクライアント ライブラリを自由に組み合わせられる旨の段落を削除 - reference/mysqli/summary.xml: mysqli::get_warnings の NOT DOCUMENTED を 実際の説明に置き換え、$mysqli_stmt::field_count から - not documented を削除。 field_count・param_count・sqlstate から given / statement の限定語を削除 - reference/mysqli/mysqli/poll.xml: reject パラメータの説明を no pending asynchronous query exists to poll に書き換え - reference/mysqli/mysqli/stmt-init.xml: mysqli_stmt function を mysqli_stmt method に変更し、戻り値を an object から a mysqli_stmt object に具体化 - reference/mysqli/ini.xml: mysqli.max_links の説明から MySQL を削除 - reference/mysqli/quickstart.xml: 原文のタイポ(complain / databased)と neither に対する not の誤りを修正し、emulation を support に言い換え。 あわせて php/doc-en@c2088ac ([skip-revcheck] #3202) の Such a separation is sometimes considered the only ... も取り込む
php/doc-en@7fabff2 (#5702) の追従。 - session.use_only_cookies を無効にすること、session.referer_check と session.trans_sid_hosts に空でない値を設定すること、 session.use_trans_sid を有効にすること、session.trans_sid_tags を デフォルト値から変更することが、いずれも PHP 8.4.0 以降は非推奨である旨を 一覧表の Changelog 列と本文の警告に追加 - session.trans_sid_tags のデフォルト値の記述から input=src を削除
php/doc-en@0009ebd (#5709) の追従。攻撃例で使っている mssql_query が PHP 7.0.0 で削除された mssql 拡張モジュールのものであり、現在は sqlsrv または pdo_sqlsrv を使うべきである旨の note が原文に追加された。
php/doc-en@92367ae (#5707) の追従。p_cs_precedes・p_sep_by_space・ n_cs_precedes・n_sep_by_space は int を返すが、原文が true / false と 記述していた誤りが修正され、1 / 0 になった。
php/doc-en@81593f0 (#5719) の追従。identical to the backtick operator が identical to the deprecated backtick operator に変更された。
KentarouTakeda
deleted the
sync-mysqli-pdo-grammar-and-session-deprecation
branch
July 31, 2026 06:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
翻訳内容
PDO・mysqli の文法一括修正への追従(11件)
php/doc-en@1cc1b81 (#5712) が 56 ファイルにわたって行った
<para>→<simpara>化と英文の文法修正のうち、日本語版に未反映だった分です。多くはマークアップのミラーのみですが、以下は原文の記述内容が変わっています。PDO::ATTR_STATEMENT_CLASSの説明を差し替え(クラス名のみ → クラス名とコンストラクタ引数の配列、および配列の各要素の意味)complain/databased)と、neither に対するnotの誤りを修正。emulationをsupportに言い換えmysqli.max_linksの説明からMySQLを削除mysqli::get_warningsのNOT DOCUMENTEDを実際の説明に置き換え、$mysqli_stmt::field_countから- not documentedを削除。given/statementの限定語を削除rejectパラメータの説明をno pending asynchronous query exists to pollに書き換えmysqli_stmt functionをmysqli_stmt methodに変更し、戻り値をan objectからa mysqli_stmt objectに具体化なお reference/mysqli/quickstart.xml の php/doc-en@c2088ac は
[skip-revcheck]付きのため revcheck には現れませんが、EN-Revision を進める範囲に含まれるので今回あわせて取り込んでいます。独立ファイル
session.use_only_cookiesを無効にすること、session.referer_checkとsession.trans_sid_hostsに空でない値を設定すること、session.use_trans_sidを有効にすること、session.trans_sid_tagsをデフォルト値から変更することが、いずれも PHP 8.4.0 以降は非推奨である旨を一覧表と本文に追加。あわせてsession.trans_sid_tagsのデフォルト値の記述からinput=srcを削除mssql_query()が PHP 7.0.0 で削除されたmssql拡張モジュールのものであり、現在は sqlsrv または pdo_sqlsrv を使うべきである旨の note を追加p_cs_precedes/p_sep_by_space/n_cs_precedes/n_sep_by_spaceは int を返すのに原文がtrue/falseと記述していた誤りが修正されたことへの追従(1/0)getimagesizefromstring()を追加このマージにより、mysqli・PDO・tidy・pgsql・session・strings・image・exec・mysqlinfo の各モジュールが完訳になります。