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
Loading
Loading
Loading
Loading
+1 −1
Changes for core/modules/big_pipe/src/Render/BigPipe.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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.