Bug #21865
closedhtmlmail: deprecated message with PHP 5.3 for sql_regcase
0%
Description
sql_regcase is deprecated in php 5.3
(issue imported from #M13060)
Files
Updated by Benni Mack almost 15 years ago
Hey Falk,
your patch isn't right.
+ if (function_exists('sql_regex')) {
+ $ret = sql_regcase($tag);
+ } else {
There will never be a function called "sql_regex", the functions' name is sql_regcase.
Updated by Falk Kühnel almost 15 years ago
You are most definately right. Since it worked with either php version i did not even notice :)
Updated by Christian Goudreau over 14 years ago
Also, same problem with class.tslib_pagegen.php. Tried your fixe within the default search page from Typo3. It worked, no more error, but when I clicked a link, a get a blank page.
If I remove &sword_list[]=convent from
index.php?id=325&no_cache=1&sword_list[]=convent
it work, but no more yellowed words.
Updated by Martin over 14 years ago
There is no need to use sql_regcase. The intent of sql_regcase() at function tag_regex() is to make regex case insensitive. The function tag_regex() is used in file class.t3lib_htmlmail.php only and in relation to preg_split().
There is no need to add a private funktion sql_regcase() !
Using a regex modifier instead.
Patch "patch_13060_2.diff" added and mailed to core list.
Updated by Sebastian Winterhalder over 14 years ago
The diffs show exactly the solution. I checked with Typo3 Version [4.3.3 (2010-04-09)] and PHP 5.3. The Error was absolutely reproduceable with the Extension sr_feuser_register when registering a user.
Updated by Christian Kuhn over 14 years ago
- trunk rev. 8275
- 4.4 rev. 8276
- 4.3 rev. 8277