Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#802 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@asgrim arbeitet bereits daran.

Seit 29.10.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

Vorherrschende Sprache
PHP
Sterne
2.1k
Forks
77
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
21

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus php/pie

Alle Issues in php/pie

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.