/** * Override PHP errors handler to PHP Console handler */ protected function initErrorsHandler() { ini_set('display_errors', false); ini_set('html_errors', false); error_reporting($this->errorsHandlerLevel ?: E_ALL | E_STRICT); $this->oldErrorsHandler = set_error_handler(array($this, 'handleError')); register_shutdown_function(array($this, 'checkFatalErrorOnShutDown')); $this->connector->registerFlushOnShutDown(); }