[TASK] Error reporting is set twice in bootstrap
authorAndy Grunwald <andygrunwald@gmail.com>
Tue, 20 Mar 2012 09:24:55 +0000 (10:24 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 11 Apr 2012 12:32:13 +0000 (14:32 +0200)
In index.php AND typo3/sysext/cms/tslib/index_ts.php
(which will be included in index.php) the error reporting
is set to E_ALL ^ E_NOTICE ^ E_DEPRECATED.

The set command in typo3/sysext/cms/tslib/index_ts.php is
obsolete, because this has no further effect.
This will be set in the previous index.php as well.

Result: Less code to maintain

See also #35003, #35017 and #35019

Change-Id: I52341366fab6231a78acd394c09bfa67de1108e9
Fixes: #35023
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/9763
Reviewed-by: Andy Grunwald
Tested-by: Andy Grunwald
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/cms/tslib/index_ts.php

index b21a78c..7a13438 100644 (file)
 // *******************************
 if (version_compare(phpversion(), '5.3', '<')) die ('TYPO3 requires PHP 5.3.0 or higher.');
 
-// *******************************
-// Set error reporting
-// *******************************
-error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
-
 
 // ******************
 // Constants defined