Project

General

Profile

Actions

Bug #21459

closed

PHP-5.3 error: function define_syslog_variables() is deprecated

Added by Rupert Germann over 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-11-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

12470.diff (400 Bytes) 12470.diff Administrator Admin, 2009-11-04 22:38
Actions #1

Updated by Benni Mack almost 14 years ago

Committed this one:
- to trunk (rev. 7540)
- to TYPO3_4-3 (rev. 7541)
- to TYPO3_4-2 (rev. 7542)

Actions #2

Updated by Benni Mack almost 14 years ago

Wrong target version,sry.

Actions #3

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.4.0)
Actions

Also available in: Atom PDF