composer: Problem with extensions loaded
Getting errors since PR https://github.com/composer/composer/pull/8812
Composer detected issues in your platform:
Your Composer dependencies require the following PHP extensions to be installed: imap, intl, pcntl
I use Laravel Horizon which is producing these errors I think… Their composer.json is here https://github.com/laravel/horizon/blob/4.x/composer.json
And also this package composer.json file, https://github.com/ddeboer/imap/blob/master/composer.json
All of these extensions are installed… And composer works correct before this commit…
php -v
PHP 7.4.5 (cli) (built: Apr 14 2020 12:54:33) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.5, Copyright (c), by Zend Technologies
php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
imap
intl
json
libxml
mbstring
mcrypt
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 26 (10 by maintainers)
We do have the platform-check config option that you can set to false then the whole thing is gone. Can set that in your global config in the dev env for example with
composer config -g platform-check false
.Yes the new version works! Thanks
I seem to know why imap and intl are complaining. I use Deployer for my project to deploy and it sometimes uses the standard Mac os x PHP version, it needs to use my homebrew php version… Thanks for the help
Alright you can self-update to latest and it should be fixed after a
composer dump-autoload
Ok that’s great to hear. Then we only have to fix pcntl one way or another on our end.