[TYPO3-core] RFC #10092: Feature: Add a logging API for deprecated functions
Martin Kutschker
masi-no at spam-typo3.org
Sat Jan 24 10:39:44 CET 2009
Martin Kutschker schrieb:
> Martin Kutschker schrieb:
>> Hi!
>>
>> This is a patch request.
>>
>> Branch: trunk
>>
>> Description: A function to t3lib_div that logs calls to deprecated
>> functions to the PHP log and a custom log in typo3conf.
>>
>> Note: patch contains logging function and example usage in t3lib_div.
>
> Here comes a new version. The logging is now split up into two
> functions: deprecationLog() and logDeprecatedFunction.
>
> The reason is that I will also introduce
> TSFE->logDeprecatedTyposcript(). This function shouldn't write to the
> PHP log and it doesn't need to read any annotions.
>
> Note: the patch contains a few corrections to the docs. They are not
> really related but make a better result when used with Doyxgen. Sorry.
Committed to trunk (4841) with one change. I made the trigger ready for
PHP 5.3
if (defined('E_USER_DEPRECATED')) {
trigger_error($errorMsg, E_USER_DEPRECATED);
} else {
trigger_error($errorMsg, E_USER_NOTICE);
}
Masi
More information about the TYPO3-team-core
mailing list