Issue #3238941 by andypost, daffie: \Drupal\big_pipe\Render\BigPipe::splitHtmlOnPlaceholders() causes deprecation errors on PHP 8.1

merge-requests/1232/head
catch 2021-09-24 09:42:42 +01:00
parent 0cbd31dbb8
commit c6c5559ae6
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ EOF;
if (strlen($pattern) < 31000) {
// Only small (<31K characters) patterns can be handled by preg_split().
$flags = PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE;
$result = preg_split($pattern, $html_string, NULL, $flags);
$result = preg_split($pattern, $html_string, 0, $flags);
}
else {
// For large amounts of placeholders we use a simpler but slower approach.