ports/devel/phabricator/files/patch-externals_phpmailer_class.phpmailer-lite.php
Michael Gmelin 4512883f38 devel/phabricator: Fix phpmailer with PHP 8
PR:		280512
Reported by:	Ivan Rozhuk <rozhuk.im@gmail.com>
2024-12-03 16:47:54 +01:00

11 lines
403 B
PHP

--- externals/phpmailer/class.phpmailer-lite.php.orig 2024-12-03 14:44:25 UTC
+++ externals/phpmailer/class.phpmailer-lite.php
@@ -1492,7 +1492,7 @@ class PHPMailerLite {
$eol = "\r\n";
$escape = '=';
$output = '';
- while( list(, $line) = each($lines) ) {
+ foreach ($lines as $line) {
$linlen = strlen($line);
$newline = '';
for($i = 0; $i < $linlen; $i++) {