Skip to content

Commit dc139e9

Browse files
chore(composer): 本体が使用する PHP 拡張を composer.json に宣言する (#6940)
本体が使っているのに composer.json に無く、推移的にも担保されていない拡張の うち、宣言しても既存環境を弾かない 3 件を宣言する。 - ext-pdo … TransactionListener / PluginService が getNativeConnection() の 戻りを \PDO として inTransaction() を呼ぶ。無ければ EC-CUBE が動かない - ext-session … framework.yaml が session.handler.native_file を指定する。 同様に無ければ動かない - ext-ctype … ctype_digit / ctype_xdigit を使用。symfony/polyfill-ctype が provide するため非搭載環境でも依存解決は通る ext-phar は本番の要求元が無く(dev の phar-io/manifest のみ)、宣言すると これまで動いていた環境のプラグイン導入を止める。#6827 の sodium と同じ 「CLI を持たない共有レンタルサーバーでは利用者が回避できない」問題を 作るため宣言しない。ext-libxml も直接使用が無いため見送る。 制約は polyfill の provide を満たせるよう "*" とする。composer.lock は platform セクションと content-hash のみ更新し、パッケージ版は変更しない。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent f03d0da commit dc139e9

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
"prefer-stable": true,
1414
"require": {
1515
"php": "^8.2",
16+
"ext-ctype": "*",
1617
"ext-curl": "*",
1718
"ext-filter": "*",
1819
"ext-intl": "*",
1920
"ext-json": "*",
2021
"ext-mbstring": "*",
2122
"ext-openssl": "*",
23+
"ext-pdo": "*",
24+
"ext-session": "*",
2225
"ext-tokenizer": "*",
2326
"ext-xml": "*",
2427
"ext-zip": "*",

composer.lock

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)