Skip to content

Modernize PDO installation documentation - #5277

Merged
lacatoire merged 1 commit into
php:masterfrom
lacatoire:fix/pdo-install-modernize
Aug 28, 2026
Merged

lacatoire merged 1 commit into
php:masterfrom
lacatoire:fix/pdo-install-modernize

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Summary

  • Remove outdated dl() reference from Windows PDO installation section
  • Replace "DLL files" with generic "extension files" wording
  • The main issue (.so/.dll extensions and php_ prefix in examples) was already fixed in
    a previous update

Fixes #3377

@lacatoire lacatoire closed this Mar 2, 2026
@lacatoire lacatoire reopened this Aug 28, 2026
@lacatoire
lacatoire force-pushed the fix/pdo-install-modernize branch from cf84132 to ee2518c Compare August 28, 2026 12:19
@lacatoire
lacatoire force-pushed the fix/pdo-install-modernize branch from ee2518c to 62cd367 Compare August 28, 2026 12:25
@lacatoire
lacatoire merged commit 6e58d11 into php:master Aug 28, 2026
2 checks passed
@lacatoire
lacatoire deleted the fix/pdo-install-modernize branch August 28, 2026 12:26
KentarouTakeda added a commit to php/doc-ja that referenced this pull request Sep 21, 2026
* PHP 8.5 での PDO の fetch mode の変更と非推奨化に追従

原文の php/doc-en@e16d04c (php/doc-en#5817) に追従する。

- PDOStatement::fetchAll() で PDO::FETCH_INTO を使った場合と、
  PDO::FETCH_CLASS 以外と PDO::FETCH_PROPS_LATE を併用した場合の ValueError
- PDOStatement::setFetchMode() の constructorArgs が CUFA の規約に従うように
  なったことと、リファレンス渡しのパラメータへの自動ラップの廃止
- PDOStatement::setAttribute() で Firebird ドライバのカーソル名が長すぎる
  場合の ValueError
- PDO::__construct() の uri: DSN スキームの非推奨化
- PDO クラスのドライバ固有の定数の非推奨化

* PHP 8.5 での ext/pdo_sqlite の追加と挙動変更に追従

原文の php/doc-en@eff8e0d (php/doc-en#5818) に追従する。

- Pdo\Sqlite の定数 12 件の追加(ATTR_BUSY_STATEMENT、ATTR_EXPLAIN_STATEMENT、
  EXPLAIN_MODE_*、ATTR_TRANSACTION_MODE、TRANSACTION_MODE_*、OK、DENY、IGNORE)
- Pdo\Sqlite::setAuthorizer() のページを新規翻訳
- PDO::quote() で SQLite ドライバを使う場合に null バイトを含む文字列が
  例外または警告になったこと
- Pdo\Sqlite::createCollation() のコールバックが int を返さない場合の TypeError
- libsqlite の必須バージョンが 3.7.17 以上になったこと

pdo_sqlite/configure.xml では、原文が PHP 7.4.0 の要件の直後に 8.5.0 の要件を
挿入したため、後続の「それより前のバージョンでは」の指す先が 8.5.0 に読み替わる。
この 1 行のみ「PHP 7.4.0 より前のバージョンでは」と明示した。

* PDO のインストール手順の更新に追従

原文の php/doc-en@6e58d11 (php/doc-en#5277) に追従する。

Windows での手順から dl() による実行時ロードの案内が削除され、php.ini で
有効にする方法に一本化された。あわせて "DLL" が "extension files" に改められた。

* PDO_MYSQL の DSN への user / password の追加に追従

原文の php/doc-en@57a2f4c (php/doc-en#5706) に追従する。

DSN で user と password を指定できること、およびコンストラクタの引数が
DSN の指定より優先されることが追記された。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Old configuration at the PDO installation page

2 participants