Page MenuHomePhorge

class.phpmailer-lite.php uses each() removed in PHP 8.0
Closed, ResolvedPublic

Description

EncodeQPphp() in https://we.phorge.it/source/phorge/browse/master/externals/phpmailer/class.phpmailer-lite.php$1495 is while( list(, $line) = each($lines) )

each() has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0 per https://www.php.net/manual/en/function.each.php

FYI the class is called in several places:

./phorge/src/applications/metamta/adapter/PhabricatorMailAmazonSESAdapter.php:    require_once $root.'/externals/phpmailer/class.phpmailer-lite.php';
./phorge/src/applications/metamta/adapter/PhabricatorMailSMTPAdapter.php:    require_once $root.'/externals/phpmailer/class.phpmailer.php';
./phorge/src/applications/metamta/adapter/PhabricatorMailSendmailAdapter.php:    require_once $root.'/externals/phpmailer/class.phpmailer-lite.php';

Same issue for https://we.phorge.it/source/phorge/browse/master/externals/phpmailer/class.phpmailer.php$1627

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.