pie.phar refuses to start when ext-psr is loaded (symfony/service-contracts conflicts with ext-psr)
維護者通常 1 天內回覆
@asgrim 已經在處理了。
開始於 2026年10月29日。
評估
這個 Issue 還沒有評估資料。
描述
What are you trying to do?
Run pie.phar on a system where the psr extension (PECL PSR 1.2.0) is loaded.
What platform, and PIE version are you using?
- PIE 1.5.3
- PHP 8.4.5 (CLI),
/etc/php/8.4/cli/php.ini,psr1.2.0 loaded - Ubuntu 24.04
Steps to reproduce the issue
- Install PHP 8.4.5 CLI with the
psrextension enabled. - Download
pie.phar1.5.3. - Run
php pie.phar.
What do you expect to happen?
PIE starts normally.
What is actually happening
The Box requirements checker aborts startup because the bundled symfony/service-contracts conflicts with ext-psr. PIE is unusable while psr is loaded, even though PIE is the tool meant to install extensions.
Complete logs/output
Box Requirements Checker
========================
> Using PHP 8.4.5
> PHP is using the following php.ini file:
/etc/php/8.4/cli/php.ini
> Checking Box requirements:
..........E
[ERROR] Your system is not ready to run the application.
Fix the following mandatory requirements:
=========================================
* The package "symfony/service-contracts" conflicts with the extension "psr".
You need to disable it in order to run this application.
Anything else?
psr is a widely used extension, so this affects anyone who has it installed.
Confirmed: sudo phpdismod -v 8.4 -s cli psr makes pie.phar start normally, so the conflict is caused solely by the loaded psr extension.
Things that do not help: php -d extension=psr.so pie.phar (only emits Module "psr" is already loaded).
Workaround: sudo phpdismod -v 8.4 -s cli psr, run PIE, then sudo phpenmod -v 8.4 -s cli psr.
Suggestion: make PIE work with ext-psr loaded (e.g. by scoping the bundled Psr/Symfony contracts packages), or document the limitation and the workaround.
- 主要語言
- PHP
- 星號
- 2.1k
- 分支
- 77
- 平均合併
- 1 天 1 小時
- 30 天內合併 PR
- 21
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
php/pie 的其他 Issue
-
Define a package map to resolve common packages可能已有人在做 @asgrim 於 2 天前認領。 未關閉enhancement maintainer investigating
維護者通常 1 天內回覆
-
Retry / switch to source build on connection errors可能已有人在做 @asgrim 於 5 天前認領。 未關閉enhancement maintainer investigating
難度 4/5 3-5 天 新手友好度 48/100
php/pie#792 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Release asset downloads are replaced by the repository's preferred dist mirror可能已有人在做 @asgrim 於 5 天前認領。 未關閉maintainer investigating
難度 3/5 1-2 天 新手友好度 68/100
維護者通常 1 天內回覆
-
Investigate flaky ubi9/rocky e2e tests可能已有人在做 @asgrim 於 9 天前認領。 未關閉maintainer investigating
維護者通常 1 天內回覆
-
Do not duplicate an ext in pie show output for dev versions可能重新可做 @asgrim 於 32 天前認領,目前沒有進行中的 PR。 未關閉enhancement maintainer investigating
維護者通常 1 天內回覆
相似的 Issue
-
bug webbackend
難度 2/5 1-3 小時 新手友好度 74/100
DOMjudge/domjudge#3886 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
opensourcepos/opensourcepos#4794 ·
維護者通常 1 天內回覆
-
repo:cms
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
REST API: decimal ids like 1.5 give 500 on folder and report endpoints可能已有人在做 @console-log-life 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 3 天內回覆