[TYPO3-english] Strange depreciation log behavior

Björn Pedersen pedersen at frm2.tum.de
Thu Sep 13 10:09:47 CEST 2012


Am 12.09.2012 12:12, schrieb Thomas Skierlo:
> With TYPO3 4.7.4 my depreciation log is flooded with:
> 
> 12-09-12 11:48:
> t3lib_div::int_from_ver() - since TYPO3 4.6, will be removed in TYPO3
> 6.1 - Use
> t3lib_utility_VersionNumber::convertVersionNumberToInteger() instead
> - require(ypo3/init.php),ypo3/ajax.php#55 //
> require(3lib/config_default.php),ypo3/init.php#201 //
> require(typo3conf/temp_CACHED_ps0e32_ext_localconf.php),3lib/config_default.php#1086
> 
> // t3lib_div::int_from_ver#1466 //
> t3lib_div::logDeprecatedFunction#888 (3lib/class.t3lib_div.php#885)
> 
> The only occurrance of "t3lib_div::int_from_ver()" on my dev. server is
> within Ext.: PHPUnit 3.6.11, and the usage looks perfectly ok to me:
> 
> 
>     /**
> 
>      * Computes the current TYPO3 version and returns it.
> 
>      *
> 
>      * @return integer
> 
>      */
> 
>     protected function getCurrentTypo3Version() {
> 
>         return class_exists('t3lib_utility_VersionNumber')
> 
>             ?
> t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version)
> 
>             : t3lib_div::int_from_ver(TYPO3_version);
> 
>     }
> 
> 
> Any ideas?
> 
> 
> Thomas
> 
It actually could be a problem with using this function in an
ext_autolad.php file. There the autoloader is not funtional yet, so the
class may not be resolvable yet.

Björn



More information about the TYPO3-english mailing list