[TYPO3-v4] Deprecation of t3lib_div::testInt() in TYPO3 4.6

Xavier Perseguers xavier at typo3.org
Wed Nov 23 13:43:18 CET 2011


Hi,

> As you are probably aware of several "mathematical" method were moved to
> a separate class from t3lib_div and methods such as t3lib_div::testInt()
> were marked as deprecated. As this is very commonly used in extensions,
> it absolutely floods the deprecation log to the point where it becomes
> nearly useless.

I raised the problem quite some time ago and IIRC, we agreed on a
two-step deprecation for one of those highly used method (don't remember
which one and don't want to search right now), something like, it is
deprecated in 4.6 but flood log only starting from 4.7.

Now, concerning this very case, there is a wiki entry that shows how to
do it "the right way" while supporting very old TYPO3 version and
cutting-edge ones without flooding the deprecation log. You like it or
not but it works!

http://forge.typo3.org/projects/typo3v46-projects/wiki/Compatibility_code_with_older_TYPO3_versions

While reading it, I found again which method has been deprecated in two
phases:

t3lib_div::int_from_ver()

Cheers

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-project-v4 mailing list