Project

General

Profile

Actions

Bug #22178

closed

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

Added by Frank Buijze about 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-02-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

patch_13649_1.diff (2.28 KB) patch_13649_1.diff Administrator Admin, 2010-05-07 17:09
patch_13649_2.diff (2.27 KB) patch_13649_2.diff Administrator Admin, 2010-06-25 13:45

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #21865: htmlmail: deprecated message with PHP 5.3 for sql_regcaseClosedChristian Kuhn2009-12-18

Actions
Has duplicate TYPO3 Core - Bug #21946: sql_regcase() deprecated with PHP 5.3.1ClosedChris topher2010-01-11

Actions
Actions

Also available in: Atom PDF