[TYPO3-core] RFC: #10043: removed deprecated functions

Steffen Kamper info at sk-typo3.de
Fri Jan 2 12:27:35 CET 2009


Hi,

Dmitry Dulepov schrieb:
> Hi!
> 
> Steffen Kamper wrote:
>> i collected all "deprecated" stuff from core and ordered by version.
>> This can be used for completition/correction /publish for the "remove
>> deprecated stuff strategy"
> 
> The following functions must stay at least in 4.3 because they are used in the extensions. Removing these functions will break commercial sites, so it is dangerous. Here is the list:
> 
> t3lib_div::array2xml
> t3lib_matchCondition, hook
> t3lib_div::GP*
> class tslib_feTCE (keep it, we might update it for 4.4 to provide proper cache cleaning and record insertion in FE)
> tslib_pibase::pi_list_query
> t3lib_div::fixed_lgd
> 

i agree, start removal in 4.4

> However we should force extension authors to update their extensions. I suggest to add a PHP warning to each such function:
> 
> 	error_log('TYPO3 warning: function XYZ is deprecated and will be removed in TYPO3 4.5. Call stack: ' . print_r(debug_backtrace(), true), E_USER_WARNING);
> 
> This will force extension developers to use other functions but will not break sites (normally PHP error reporting must be turned off in production).
> 

very good idea! We could force to add such a warning when ever a 
function get marked as deprecated.
We can implement these warnings in 4.3 so devs know they have to update 
their extensions.

vg Steffen


More information about the TYPO3-team-core mailing list