Функция drupal_truncate_bytes при отправке письма сжирает всю память и падает с ошибкой "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted. Передается обычная кириллическая строка. Находится внутри
include/unicode.inc
<?php
function mime_header_encode($string) {
if (preg_match('/[^\x20-\x7E]/', $string)) {
$chunk_size = 47; // floor((75 - strlen("=?UTF-8?B??=")) * 0.75);
$len = strlen($string);
$output = '';
while ($len > 0) {
$chunk = drupal_truncate_bytes($string, $chunk_size);
$output .= ' =?UTF-8?B?' . base64_encode($chunk) . "?=\n";
$c = strlen($chunk);
$string = substr($string, $c);
$len -= $c;
}
return trim($output);
}
return $string;
}?>
Непонятно с чем это может быть связанно. Cтатус кривых настроек не выдает при проверке.
Версия php 7.3.13