Project installation ignores version constraints when checking already-installed extensions
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
I'm using PIE in a PaaS environment, which provides PHP with a bunch of extension.
A few more extensions are automatically installed, using composer.json as source (this mechanism is implemented by the PaaS).
My setup requires ext-mongodb:^2.5.0.
The PaaS already provides mongodb 1.21.5.
When running php pie.phar install, PIE reports that the mongodb extension is already installed:
% php pie.phar install
[...]
requires: ext-mongodb:^2.5.0 ✅ Already installed
But when looking more closely:
% composer check-platform-reqs
[...]
ext-mongodb 1.21.5 __root__ requires ext-mongodb ([>= 2.5.0.0-dev < 3.0.0.0-dev]) __root__ requires ext-mongodb (^2.5.0) failed
% php --ri mongodb | grep version
MongoDB extension version => 1.21.5
[...]
I'd expect PIE to notice that the installed version does not satisfy the constraint and:
- ideally, replace the version by the appropriate one.
- at least don't report that the requirement is fulfilled, and instead report a version mismatch.
Here's my composer.json file:
{
"require": {
"ext-mongodb": "^2.5.0",
"php": "8.5.*"
}
}
Here are the different versions I'm using:
% php pie.phar --version
🥧 PHP Installer for Extensions (PIE) 1.5.2
% php -v
PHP 8.5.11 (cli) (built: Sep 25 2026 12:32:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.5.11, Copyright (c) Zend Technologies
with Zend OPcache v8.5.11, Copyright (c), by Zend Technologies
Is this intended behavior? Or am I missing something?
- 主要言語
- PHP
- スター
- 2k
- フォーク
- 75
- 平均マージ
- 20時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/pie のほかの issue
-
When --from-lock is used, --no-dev becomes a no-op対応中かも @asgrim が 2 日前に担当しました。 オープンmaintainer investigating
php/pie#778 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Do not duplicate an ext in pie show output for dev versions対応中かも @asgrim が 20 日前に担当しました。 オープンenhancement maintainer investigating
メンテナーはふだん 1 日以内に返信
-
Allow building from existing sources on disk再び着手できるかも @asgrim が 31 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement maintainer investigating
php/pie#738 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Optionally remove build-only dependencies and bloat after install再び着手できるかも @asgrim が 152 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement maintainer investigating
php/pie#618 · コメント 2 件 · リアクション 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Display number of downloads/stars when results are shown再び着手できるかも @asgrim が 179 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement maintainer investigating
php/pie#592 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nextcloud/integration_openai#446 ·
-
bug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MagnaCapax/PMSS#1101 ·
メンテナーはふだん 5 日以内に返信
-
Installation / Upgrade Platform: Docker
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信