2021-05-24 14:53:02 +00:00
|
|
|
--TEST--
|
|
|
|
Test the error output of solver problems with ext/platform packages which have platform config
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{"name": "a/a", "version": "1.0.0", "require": {"ext-filter": "2.0.0"}}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "*"
|
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"platform": {
|
|
|
|
"ext-filter": "7.4.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"stability-flags": [],
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
|
|
|
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
|
|
|
|
--EXPECT-EXIT-CODE--
|
|
|
|
2
|
|
|
|
|
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Loading composer repositories with package information
|
|
|
|
Updating dependencies
|
|
|
|
Your requirements could not be resolved to an installable set of packages.
|
|
|
|
|
|
|
|
Problem 1
|
|
|
|
- Root composer.json requires a/a * -> satisfiable by a/a[1.0.0].
|
2021-12-07 08:50:35 +00:00
|
|
|
- a/a 1.0.0 requires ext-filter 2.0.0 -> it has the wrong version installed (7.4.0; overridden via config.platform, actual: %s).
|
2021-05-24 14:53:02 +00:00
|
|
|
|
|
|
|
To enable extensions, verify that they are enabled in your .ini files:
|
|
|
|
__inilist__
|
2021-11-26 09:13:49 +00:00
|
|
|
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
|
2021-11-26 09:39:07 +00:00
|
|
|
Alternatively, you can run Composer with `--ignore-platform-req=ext-filter` to temporarily ignore these required extensions.
|
2021-05-24 14:53:02 +00:00
|
|
|
|
|
|
|
--EXPECT--
|