Page MenuHomePhabricator

Investigate whether GD is still needed on appservers
Open, NormalPublic

Description

modules/profile/manifests/mediawiki/php.pp installs php-gd with the following comment:

# gd - ZeroBanner

We need to figure out whether GD indeed not needed by anything else and uninstall it if it's the case.

Event Timeline

MaxSem created this task.Jul 11 2019, 6:09 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 11 2019, 6:09 AM
akosiaris triaged this task as Normal priority.Jul 15 2019, 2:50 PM

During the initial PHP 7 preparation (when that puppet file was written), I did an audit and found that only ZeroBanner was using gd. I don't know if anything since then has started to use it. Probably a codesearch of all the function names (they're not named in a standardized manner >.<) would be good enough to verifying nothing is using it

On the Debian packaging level there are also no reverse depencies on php-gd or php7.2-gd.

TheDJ added a subscriber: TheDJ.Jul 17 2019, 8:46 AM

Note that getimagesize and getimagesizefromstring are part of standardlib not GD, even though they are documented on the GD page (were they originally part of GD?)

Change 526255 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[operations/puppet@production] mediawiki::php: Don't install gd any more, ZeroBanner is gone

https://gerrit.wikimedia.org/r/526255