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;