Page MenuHomePhabricator

composer.json missing pear/net_smtp
Closed, ResolvedPublic

Description

I can't send email, because Class 'Net_SMTP' not found. I run find vendor -type f -name "*.php" | xargs grep "class Net_SMTP", but nothing. I also composer update --no-dev.

Then I checked release tarball, I found Net_SMTP class in vendor/pear/net_smtp/Net/SMTP.php. But I can't find this file in my git installation, looks like composer.json missing pear/net_smtp.

Event Timeline

Change 447644 had a related patch set uploaded (by MarkAHershberger; owner: MarkAHershberger):
[mediawiki/core@master] Add Net_SMTP to composer deps

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

Change 465674 had a related patch set uploaded (by Reedy; owner: MarkAHershberger):
[mediawiki/core@REL1_31] Add pear/Net_SMTP 1.8.0 to composer dependencies

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

Reedy assigned this task to MarkAHershberger.
Reedy edited projects, added MediaWiki-General; removed Patch-For-Review.
Reedy subscribed.

For some reason pear/mail just has a suggest for pear/net_smtp. Feels a bit loose to me.

Patch is going through CI, backported to REL1_31

Change 447644 merged by jenkins-bot:
[mediawiki/core@master] Add pear/Net_SMTP 1.8.0 to composer dependencies

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

Change 465674 merged by jenkins-bot:
[mediawiki/core@REL1_31] Add pear/Net_SMTP 1.7.3 to composer dependencies

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