Bug #22691 » patch-4.3.diff
new/t3lib/error/class.t3lib_error_errorhandler.php 2010-05-20 22:39:06.937063105 +0200 | ||
---|---|---|
protected $exceptionalErrors = array();
|
||
/**
|
||
* Registers this class as default error handler
|
||
* Initializes the default errorhandler
|
||
*
|
||
* @param integer The integer representing the E_* error level which should be
|
||
* handled by the registered error handler.
|
||
* @return void
|
||
*/
|
||
public function __construct($errorHandlerErrors) {
|
||
public function initErrorHandler($errorHandlerErrors) {
|
||
set_error_handler(array($this, 'handleError'), $errorHandlerErrors);
|
||
}
|
||
... | ... | |
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/error/class.t3lib_error_errorhandler.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/error/class.t3lib_error_errorhandler.php']);
|
||
}
|
||
?>
|
new/t3lib/error/interface.t3lib_error_errorhandlerinterface.php 2010-05-20 22:36:49.769429540 +0200 | ||
---|---|---|
interface t3lib_error_ErrorHandlerInterface {
|
||
/**
|
||
* Registers this class as default error handler
|
||
* Initializes the default errorhandler
|
||
*
|
||
* @param integer The integer representing the E_* error level which should be
|
||
* handled by the registered error handler.
|
||
* @return void
|
||
*/
|
||
public function __construct($errorHandlerErrors);
|
||
public function initErrorHandler($errorHandlerErrors);
|
||
/**
|
||
* Defines which error levels should result in an exception thrown.
|
new/t3lib/error/interface.t3lib_error_exceptionhandlerinterface.php 2010-05-20 22:37:31.397066752 +0200 | ||
---|---|---|
interface t3lib_error_ExceptionHandlerInterface {
|
||
/**
|
||
* Constructs this exception handler - registers itself as the default exception handler.
|
||
*/
|
||
public function __construct();
|
||
/**
|
||
* Handles the given exception
|
||
*
|
||
* @param Exception $exception: The exception object
|
new/typo3/init.php 2010-05-20 22:40:29.789666662 +0200 | ||
---|---|---|
if ($TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionHandler'] !== '') {
|
||
if ($TYPO3_CONF_VARS['SYS']['errorHandler'] !== '') {
|
||
// register an error handler for the given errorHandlerErrors
|
||
$errorHandler = t3lib_div::makeInstance($TYPO3_CONF_VARS['SYS']['errorHandler'], $TYPO3_CONF_VARS['SYS']['errorHandlerErrors']);
|
||
// set errors which will be converted in an exception
|
||
$errorHandler = t3lib_div::makeInstance($TYPO3_CONF_VARS['SYS']['errorHandler']);
|
||
$errorHandler->initErrorHandler($TYPO3_CONF_VARS['SYS']['errorHandlerErrors']);
|
||
// set errors which will be converted in an exception
|
||
$errorHandler->setExceptionalErrors($TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionalErrors']);
|
||
}
|
||
$exceptionHandler = t3lib_div::makeInstance($TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionHandler']);
|
- « Previous
- 1
- 2
- Next »