224 public function initialize($exceptionHandlerOutputCreator, $exceptionHandlerLogCreator =
null)
226 if ($this->isInitialized)
233 $this->handlerOutputCreator = $exceptionHandlerOutputCreator;
234 $this->handlerLogCreator = $exceptionHandlerLogCreator;
236 if ($this->catchOverflowMemory)
238 $this->memoryReserve = str_repeat(
'b', $this->memoryReserveLimit);
241 set_error_handler([$this,
"handleError"], $this->handledErrorsTypes);
242 set_exception_handler([$this,
"handleException"]);
243 register_shutdown_function([$this,
"handleFatalError"]);
247 assert_options(ASSERT_ACTIVE, 1);
248 assert_options(ASSERT_WARNING, 0);
249 assert_options(ASSERT_BAIL, 0);
250 assert_options(ASSERT_CALLBACK, [$this,
"handleAssertion"]);
254 assert_options(ASSERT_ACTIVE, 0);
257 $this->isInitialized =
true;
293 $exception = new \ErrorException($message, 0, $code, $file, $line);
295 if (!$this->ignoreSilence)
297 $errorReporting = error_reporting();
299 $errorReporting === 0
300 || $errorReporting === (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR | E_PARSE)
307 if (!$this->isFileInTrackedModules($file))
312 if ($code & $this->exceptionErrorsTypes)