$this->active = TRUE;
$this->backup = [];
foreach ([
- 'display_errors',
- 'html_errors',
- 'xmlrpc_errors',
- ] as $key) {
+ 'display_errors',
+ 'html_errors',
+ 'xmlrpc_errors',
+ ] as $key) {
$this->backup[$key] = ini_get($key);
ini_set($key, 0);
}
$this->errorScope = NULL;
restore_error_handler();
foreach ([
- 'display_errors',
- 'html_errors',
- 'xmlrpc_errors',
- ] as $key) {
+ 'display_errors',
+ 'html_errors',
+ 'xmlrpc_errors',
+ ] as $key) {
ini_set($key, $this->backup[$key]);
}
$this->active = FALSE;