Project

General

Profile

Actions

Bug #51493

closed

Error Reporting always set with E_WARNING

Added by Tizian Schmidlin about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2013-08-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

Description

There is something in the core that sets the error reporting to 22519 (E_ALL ^ E_NOTICE ^ E_DEPRECATED), even with the following localconf.php configuration:

$TYPO3_CONF_VARS['SYS']['displayErrors'] = 0;
$TYPO3_CONF_VARS['SYS']['errorHandlerErrors']     = 22517; // E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_WARNING (everything except deprecated-msgs and notices and warnings) 
$TYPO3_CONF_VARS['SYS']['syslogErrorReporting']   = 22517; // E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_WARNING (everything except deprecated-msgs and notices and warnings) 
$TYPO3_CONF_VARS['SYS']['belogErrorReporting']    = 22517; // E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_WARNING (everything except deprecated-msgs and notices and warnings)

This can be reproduced on all systems using TYPO3 4.5.X with PHP 5.3 on Windows and Linux.

Even when set directly in the php.ini, the value get's set to 22519 again.

To check I used extdeveval's phpinfo.

This wouldn't be as much as a problem, if the PHP errors weren't logged to PHP's error log (which can only be avoided by either setting the correct error_reporting bitmask or disabling error reporting completly which should not be seen as an option).

I made absolutely sure that none of the installed extensions in the system actually sets this value by:
- grep'ing the whole thing for 22519, E_WARNING, ini_set and error_reporting
- deinstalling all non-core extensions
- tracing the execution of the extdeveval module

All this showed that there is nothing that actually modifies the error reporting, but still, the error_reporting get's flawnd (see attached screenshot from extdeval).


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #39232: PHP error_reporting cannot be set properly, E_STRICT errors shown on PHP 5.4Closed2012-07-25

Actions
Actions

Also available in: Atom PDF