Skip to content
Snippets Groups Projects
Commit c6c5559a authored by catch's avatar catch
Browse files

Issue #3238941 by andypost, daffie:...

Issue #3238941 by andypost, daffie: \Drupal\big_pipe\Render\BigPipe::splitHtmlOnPlaceholders() causes deprecation errors on PHP 8.1
parent 0cbd31db
No related branches found
No related tags found
No related merge requests found
......@@ -774,7 +774,7 @@ private static function splitHtmlOnPlaceholders($html_string, array $html_placeh
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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment