Deprecated: The each() function is deprecated в PHP 7.2
При переносе кода из PHP 5.4 на PHP 7.2 в libmail.php словил следующую ошибку:
Deprecated: The each() function is deprecated.
Код:
while (list ($hdr, $value) = each($this->xheaders)) {
...
}
Ну в принципе достаточно заменить его на:
foreach ($this->xheaders as $hdr=>$value){
}
и
while (list (, $line) = each($lines)) {
на
foreach ($lines as $line) {