Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The composer.json in core does not reflect the state of our required php extensions.
The issue has been discovered by therobyouknow in https://github.com/drupal-composer/drupal-project/issues/144
Proposed resolution
Add all required php extensions to core/composer.json
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#19 | 2713073-19.patch | 1.29 KB | harsha012 |
Comments
Comment #2
dawehnerAfaik
is the list of extensions we require.
Comment #3
jibranWhat about mbstring, mcrypt and apcu?
Comment #4
dawehnerAren't those 3 actually optional?
Comment #5
jibranWell I tired PHP 7 without mbstring, mcrypt and
install.inc
broke for me in BTB.Comment #6
dawehnerWhich place requires it? IMHO its fine for the testing system to require it, but the runtime for example should not require mbstring.
Comment #7
webflo CreditAttribution: webflo at UEBERBIT GmbH commented@jibran I couldn't reproduce the dependency on mbstring, mcrypt and apcu.
Comment #9
Mile23I wonder how many installations we'd break by doing this. :-)
As far as which mb string library we require: http://cgit.drupalcode.org/drupal/tree/core/lib/Drupal/Component/Utility...
So it could be any of them, but not a hard dependency on any one.
Comment #10
Mile23Looks like CacheDatabaseBackend might rely on mbstring: #2547419: Drupal requires mbstring PHP extension during install phase #2560123: mbstring_check_encoding() in cache database backend doesn't actually work
Comment #11
Grayside CreditAttribution: Grayside at Phase2 for Norwegian Cruise Line commentedDoesn't imagemagick potentially swap in for gd? How would contrib/custom modules that swap "reasonable" services like that keep dependencies minimal?
Comment #14
Mile23Added all the extensions from #2 and updated the lock file.
Moved back to 8.4.x because this really is a bug.
Comment #15
Mile23Comment #17
dawehnerNice, thank you @Mile23!
Comment #19
harsha012 CreditAttribution: harsha012 as a volunteer and at Red Crackle commentedRe-uploaded the patch to fix the patch issue in cli
Comment #20
borisson_Not sure where there are 2 patch in #19, and I don't see any difference between them, but they are different in filesize.
However, it looks solid.
Comment #21
alexpottYep this list matches the list in system_requirements
I checked the capitalisation of PDO and it is correct as far as the output of
php -m
for me.Adding review credit.
Comment #22
alexpottCommitted and pushed 2f5a36cb1a to 8.6.x and 9507c19af3 to 8.5.x. Thanks!
Backporting to 8.5.x since this is a low-risk bugfix that helps people install and use Drupal without unexpected issues.
Comment #26
jcnventura CreditAttribution: jcnventura at Wunder commentedAny chance of a backport of this to the D7 composer.json?
Current list of D7 PHP dependencies from drupal-composer/drupal-project:
php >=5.2.5
ext-curl
ext-gd
ext-json
ext-openssl
ext-pdo
ext-pdo_mysql
ext-xml