Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (revision 7566) +++ t3lib/class.t3lib_div.php (working copy) @@ -5763,7 +5763,7 @@ /** * Logs a call to a deprecated function. - * The log message will b etaken from the annotation. + * The log message will be taken from the annotation. * @return void */ public static function logDeprecatedFunction() { @@ -5778,29 +5778,20 @@ } else { $function = new ReflectionFunction($trail[1]['function']); } - if (!$msg) { - if (preg_match('/@deprecated\s+(.*)/', $function->getDocComment(), $match)) { - $msg = $match[1]; - } + + $msg = ''; + if (preg_match('/@deprecated\s+(.*)/', $function->getDocComment(), $match)) { + $msg = $match[1]; } - // trigger PHP error with a short message: is deprecated (called from , defined in ) + // trigger PHP error with a short message: is deprecated (called from , defined in ) $errorMsg = 'Function ' . $trail[1]['function']; if ($trail[1]['class']) { $errorMsg .= ' of class ' . $trail[1]['class']; } $errorMsg .= ' is deprecated (called from '.$trail[1]['file'] . '#' . $trail[1]['line'] . ', defined in ' . $function->getFileName() . '#' . $function->getStartLine() . ')'; -// michael@typo3.org: Temporary disabled until error handling is implemented (follows later this week...) -/* - if (defined('E_USER_DEPRECATED')) { - trigger_error($errorMsg, E_USER_DEPRECATED); // PHP 5.3 - } else { - trigger_error($errorMsg, E_USER_NOTICE); // PHP 5.2 - } -*/ - - // write a longer message to the deprecation log: - () + // write a longer message to the deprecation log: - () $logMsg = $trail[1]['class'] . $trail[1]['type'] . $trail[1]['function']; $logMsg .= '() - ' . $msg.' - ' . self::debug_trail(); $logMsg .= ' (' . substr($function->getFileName(), strlen(PATH_site)) . '#' . $function->getStartLine() . ')';