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 于 4 天前认领。 未关闭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 于 4 天前认领。 未关闭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
-
repo:cms
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 78/100
nextcloud/fulltextsearch#1061 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100