Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

pie.phar refuses to start when ext-psr is loaded (symfony/service-contracts conflicts with ext-psr)

オープン
#802 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@asgrim がすでに取り組んでいます。

2026年10月29日 から。

評価

この issue はまだ評価されていません。

説明

maintainer investigating

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, psr 1.2.0 loaded
  • Ubuntu 24.04

Steps to reproduce the issue

  1. Install PHP 8.4.5 CLI with the psr extension enabled.
  2. Download pie.phar 1.5.3.
  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時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

php/pie のほかの issue

php/pie の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。