Issue Bug Closed

#21459PHP-5.3 error: function define_syslog_variables() is deprecated

Rupert Germann 11/04/09, 22:16 updated 03/29/11, 14:19

Description

Problem:
when something is written to t3lib_div::syslog() the following warning is displayed:
Deprecated: Function define_syslog_variables() is deprecated in C:\xampp\xampp\htdocs\typo3\dummy-4.2.9\t3lib\class.t3lib_div.php on line 5392

when this error happens in the exception handler the output shows only:
Fatal error: Exception thrown without a stack frame in Unknown on line 0
the uncaught PHP message seems to break the exception handler.

Solution:
remove the function call to define_syslog_variables() it is not used.

Background:
define_syslog_variables() initializes all (global) syslog variables. The values are taken from the Constants which are always loaded. In the core only the Constants are used, so it’s save to simply remove this call.

(issue imported from #M12470)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.