(cp 32d3ea93f) fixes #2458 add polyfill for str_starts_with function

Introduces a compatibility implementation of str_starts_with for environments where it is not available. Updates common.inc.php to include the polyfill if the function does not exist.
This commit is contained in:
Linty
2025-12-01 12:46:05 +01:00
parent d5e0cc5140
commit 5c5f21987c
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ $filter = array();
foreach(
array(
'gzopen'
'gzopen',
'str_starts_with'
) as $func)
{
if (!function_exists($func))