Page MenuHomePhabricator

Fix the PEAR packages used by MediaWiki to use Composer properly
Open, Needs TriagePublic


(This should be filed upstream but the entire PEAR website is borked.)

PEAR packages use require instead of class autoloading to invoke each other, which can lead to bugs as we have seen in T215224: PEAR PHP classes are loaded from system packages instead of Composer packages in WMF production (and probably slower as well, although the difference might be trivial). Ideally they should be transformed the way it was done for pear/HTTP_Request2.

The affected packages: pear/console_getopt, pear/mail, pear/mail_mime, pear/net_smtp, pear/net_socket, pear/pear-core-minimal.