mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
Merge branch 'develop-ascraeus' into develop
This commit is contained in:
@@ -16,15 +16,28 @@ namespace phpbb;
|
||||
class error_collector
|
||||
{
|
||||
var $errors;
|
||||
var $error_types;
|
||||
|
||||
function __construct()
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* The variable $error_types may be set to a mask of PHP error types that
|
||||
* the collector should keep, e.g. `E_ALL`. If unset, the current value of
|
||||
* the error_reporting() function will be used to determine which errors
|
||||
* the collector will keep.
|
||||
*
|
||||
* @see PHPBB3-13306
|
||||
* @param int|null $error_types
|
||||
*/
|
||||
function __construct($error_types = null)
|
||||
{
|
||||
$this->errors = array();
|
||||
$this->error_types = $error_types;
|
||||
}
|
||||
|
||||
function install()
|
||||
{
|
||||
set_error_handler(array(&$this, 'error_handler'));
|
||||
set_error_handler(array(&$this, 'error_handler'), ($this->error_types !== null) ? $this->error_types : error_reporting());
|
||||
}
|
||||
|
||||
function uninstall()
|
||||
|
Reference in New Issue
Block a user