Project

General

Profile

Actions

Bug #21865

closed

htmlmail: deprecated message with PHP 5.3 for sql_regcase

Added by Falk Kühnel over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-12-18
Due date:
% Done:

0%

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

Description

sql_regcase is deprecated in php 5.3

(issue imported from #M13060)


Files

htmlmail_sql_regex_patch.patch (1.08 KB) htmlmail_sql_regex_patch.patch Administrator Admin, 2009-12-18 12:29
htmlmail_sql_regcase_patch.patch (1.09 KB) htmlmail_sql_regcase_patch.patch Administrator Admin, 2009-12-23 22:19
patch_13060_1.diff (497 Bytes) patch_13060_1.diff Administrator Admin, 2010-05-08 15:21
patch_13060_2.diff (497 Bytes) patch_13060_2.diff Administrator Admin, 2010-05-09 07:00
13060_test.diff (2.64 KB) 13060_test.diff Administrator Admin, 2010-07-27 00:42

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #21946: sql_regcase() deprecated with PHP 5.3.1ClosedChris topher2010-01-11

Actions
Related to TYPO3 Core - Bug #22178: Deprecated function sql_regcase in cms/tslib/class.tslib_pagegen.phpClosedSteffen Kamper2010-02-24

Actions
Has duplicate TYPO3 Core - Bug #22274: sql_regcase deprecated in PHP 5.3ClosedChris topher2010-03-13

Actions
Has duplicate TYPO3 Core - Bug #23197: Php DEPRECATED function sql_regcase used in class.t3lib_htmlmail.phpClosedChris topher2010-07-15

Actions
Actions #1

Updated by Falk Kühnel over 14 years ago

Added a patch to fix the issue.

Actions #2

Updated by Benni Mack over 14 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.

Actions #3

Updated by Falk Kühnel over 14 years ago

You are most definately right. Since it worked with either php version i did not even notice :)

Actions #4

Updated by Christian Goudreau about 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.

Actions #5

Updated by Martin almost 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.

Actions #6

Updated by Sebastian Winterhalder almost 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.

Actions #7

Updated by Christian Kuhn over 13 years ago

Committed patch & test to:
  • trunk rev. 8275
  • 4.4 rev. 8276
Committed patch to:
  • 4.3 rev. 8277
Actions

Also available in: Atom PDF