Issue Bug Closed

#22178Deprecated function sql_regcase in cms/tslib/class.tslib_pagegen.php

Frank Buijze 02/24/10, 17:38 updated 10/02/18, 12:25

Description

The function pagegenInit() in typo3/sysext/cms/tslib/class.tslib_pagegen.php is using the function sql_regcase() which is deprecated in PHP 5.3.

The default front-end search form is using this function. At least if a link in the result set is clicked.

Possible solution:

Add an additional function to replace sql_regcase:

function mb_sql_regcase($string,$encoding='auto'){
$max=mb_strlen($item,$encoding);
for ($i = 0; $i $max; $i++) {
$char=mb_substr($item,$i,1,$encoding);
$up=mb_strtoupper ($char,$encoding);
$low=mb_strtolower($char,$encoding);
$ret.=($up!=$low)?'['.$up.$low.']' : $char;
}
return $ret;
}
?>

(issue imported from #M13649)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.