[TYPO3-core] RFC #13649: Deprecated function sql_regcase in cms/tslib/class.tslib_pagegen.php

Niels Pardon typo3_lists at niels-pardon.de
Tue Jun 22 21:51:39 CEST 2010


+1 by reading

This should be formatted according to the CGL with the correct
indentation and spaces around the concatenation dot.

What about including this one in 4.4.1?

Greets,

Niels



Am 07.05.2010 17:36, schrieb "Martin Müller":
> This is an SVN patch request.
> 
> Type: bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=13649
> 
> Branches:  trunk
> 
> Problem:
> 
> 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.
> 
> 
> Solution:
> 
> On file class.tslib_pagegen.php function "sql_regcase()" is used for front-end search form only.
> The intent is to produce a Regex with case insensitiv characters.
> 
> My proposal is to cut off additional functions for that case.
> The patch 0010231 / Revision 5574 replaced split() to preg_split() on class.tslib_content.php. Now we can use the regex-modifier on regex-pattern to achieve that.
> 
> My patch cut off sql_regcase() without adding an additional function but using the regex-modifier on class.tslib_content.php to get a case sensitive/insensitive result ;-)
> 
> Notes: No
> 
> Regards Martin



More information about the TYPO3-team-core mailing list