From ed3311033c753cf8ccdebc36a0bf67f1a01c8d2d Mon Sep 17 00:00:00 2001 From: frytimo Date: Tue, 10 Feb 2026 19:33:51 -0400 Subject: [PATCH] Use native PHP preg_split instead of library (#7741) The original library version was created to fix a bug that was from 2008. This bug has been fixed for a long time and the native tool improved. --- resources/tcpdf/include/tcpdf_fonts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/tcpdf/include/tcpdf_fonts.php b/resources/tcpdf/include/tcpdf_fonts.php index 29a189e61a..7bf00dabe4 100644 --- a/resources/tcpdf/include/tcpdf_fonts.php +++ b/resources/tcpdf/include/tcpdf_fonts.php @@ -1998,7 +1998,7 @@ class TCPDF_FONTS { public static function UTF8StringToArray($str, $isunicode, &$currentfont) { if ($isunicode == true) { // requires PCRE unicode support turned on - $chars = TCPDF_STATIC::pregSplit('//','u', $str, -1, PREG_SPLIT_NO_EMPTY); + $chars = preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY); $carr = array_map(array('TCPDF_FONTS', 'uniord'), $chars); } else { $chars = str_split($str);