src/Controller/ErrorController.php
public function registerFatalAction()
    {
        // As of PHP Version 7.0.2, the register_tick_function() causes PHP to
        // crash, with a connection reset! We need to check the version to avoid
        // this, and then tell the dev what happened.
        // Not to mention that fatals got removed anyway.
        if (version_compare(phpversion(), '7.0.0', '>=')) {
            // Too high! 420 Method Failure :-(
            $this->pool->messages->addMessage($this->pool->messages->getHelp('php7yellow'));
            krexx($this->pool->messages->getHelp('php7'));

            // Just return, there is nothing more to do here.
            return $this;
        }

        // Do we need another shutdown handler?
        if (static::$krexxFatal === null) {
            static::$krexxFatal = $this->pool->createClass('Brainworxx\\Krexx\\Errorhandler\\Fatal');
            declare(ticks = 1);
            register_shutdown_function(
                array(
                    static::$krexxFatal,
                    'shutdownCallback',
                )
            );
        }

        static::$krexxFatal->setIsActive(true);
        $this->fatalShouldActive = true;
        register_tick_function(array($this::$krexxFatal, 'tickCallback'));

        return $this;
    }
public function registerFatalAction()
    {
        // As of PHP Version 7.0.2, the register_tick_function() causes PHP to
        // crash, with a connection reset! We need to check the version to avoid
        // this, and then tell the dev what happened.
        // Not to mention that fatals got removed anyway.
        if (version_compare(phpversion(), '7.0.0', '>=')) {
            // Too high! 420 Method Failure :-(
            $this->pool->messages->addMessage($this->pool->messages->getHelp('php7yellow'));
            krexx($this->pool->messages->getHelp('php7'));

            // Just return, there is nothing more to do here.
            return $this;
        }

        // Do we need another shutdown handler?
        if (static::$krexxFatal === null) {
            static::$krexxFatal = $this->pool->createClass('Brainworxx\\Krexx\\Errorhandler\\Fatal');
            declare(ticks = 1);
            register_shutdown_function(
                array(
                    static::$krexxFatal,
                    'shutdownCallback',
                )
            );
        }

        static::$krexxFatal->setIsActive(true);
        $this->fatalShouldActive = true;
        register_tick_function(array($this::$krexxFatal, 'tickCallback'));

        return $this;
    }
public function registerFatalAction ( ) { // As of PHP Version 7.0.2, the register_tick_function() causes PHP to // crash, with a connection reset! We need to check the version to avoid // this, and then tell the dev what happened. // Not to mention that fatals got removed anyway. if ( version_compare ( phpversion ( ) , '7.0.0' , '>=' ) ) { // Too high! 420 Method Failure :-( $ this -> pool -> messages -> addMessage ( $ this -> pool -> messages -> getHelp ( 'php7yellow' ) ) ; krexx ( $ this -> pool -> messages -> getHelp ( 'php7' ) ) ; // Just return, there is nothing more to do here. return $ this ; } // Do we need another shutdown handler? if ( static :: $ krexxFatal === null ) { static :: $ krexxFatal = $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Errorhandler\\Fatal' ) ; declare ( ticks = 1 ) ; register_shutdown_function ( array ( static :: $ krexxFatal , 'shutdownCallback' , ) ) ; } static :: $ krexxFatal -> setIsActive ( true ) ; $ this -> fatalShouldActive = true ; register_tick_function ( array ( $ this :: $ krexxFatal , 'tickCallback' ) ) ; return $ this ; }
Register the fatal error handler.

@return $this
Return $this for chaining
Register the fatal error handler .