Project installation ignores version constraints when checking already-installed extensions
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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?
- Lenguaje dominante
- PHP
- Estrellas
- 2k
- Forks
- 75
- Merge medio
- 20 h
- PR fusionados (30 d)
- 17
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de php/pie
-
When --from-lock is used, --no-dev becomes a no-opPosiblemente ocupada @asgrim la tomó hoy. Abiertomaintainer investigating
php/pie#778 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Do not duplicate an ext in pie show output for dev versionsPosiblemente ocupada @asgrim la tomó hace 18 días. Abiertoenhancement maintainer investigating
Los mantenedores suelen responder en 1 día
-
Allow building from existing sources on diskQuizá libre de nuevo @asgrim la tomó hace 29 días y no hay ningún pull request abierto. Abiertoenhancement maintainer investigating
php/pie#738 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Optionally remove build-only dependencies and bloat after installQuizá libre de nuevo @asgrim la tomó hace 150 días y no hay ningún pull request abierto. Abiertoenhancement maintainer investigating
php/pie#618 · 2 comentarios · 4 reacciones · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Display number of downloads/stars when results are shownQuizá libre de nuevo @asgrim la tomó hace 177 días y no hay ningún pull request abierto. Abiertoenhancement maintainer investigating
php/pie#592 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Featured image not passed to checks in the Tasks column or publish blocksPosiblemente ocupada @roborourke la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
humanmade/publication-checklist#100 ·
Los mantenedores suelen responder en 1 día
-
bug customer-reported
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MagnaCapax/PMSS#1072 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
verbb/formie#3013 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
hestiacp/hestiacp#5800 · 1 comentario ·
Los mantenedores suelen responder en 1 día