public function registerGlobalHandlers() {
        if (!$this->registered) {
            // Store the previous error handler if there was any
            $this->registerErrorHandler();
            // Store the previous exception handler if there was any
            $this->registerExceptionHandler();
            // If the shutdown function hasn't been registered register it
            if ($this->registered === null) {
                $this->registerFatalErrorHandler();

                // If suhosin is relevant then decrease the memory_limit by the reserveMemory amount
                // otherwise we should be able to increase the memory by our reserveMemory amount without worry
                if ($this->isSuhosinRelevant()) {
                    $this->ensureSuhosinMemory();
                }
            }
            $this->registered = true;
        }
    }
public function registerGlobalHandlers() {
        if (!$this->registered) {
            // Store the previous error handler if there was any
            $this->registerErrorHandler();
            // Store the previous exception handler if there was any
            $this->registerExceptionHandler();
            // If the shutdown function hasn't been registered register it
            if ($this->registered === null) {
                $this->registerFatalErrorHandler();

                // If suhosin is relevant then decrease the memory_limit by the reserveMemory amount
                // otherwise we should be able to increase the memory by our reserveMemory amount without worry
                if ($this->isSuhosinRelevant()) {
                    $this->ensureSuhosinMemory();
                }
            }
            $this->registered = true;
        }
    }
public function registerGlobalHandlers ( ) { if ( ! $ this -> registered ) { // Store the previous error handler if there was any $ this -> registerErrorHandler ( ) ; // Store the previous exception handler if there was any $ this -> registerExceptionHandler ( ) ; // If the shutdown function hasn't been registered register it if ( $ this -> registered === null ) { $ this -> registerFatalErrorHandler ( ) ; // If suhosin is relevant then decrease the memory_limit by the reserveMemory amount // otherwise we should be able to increase the memory by our reserveMemory amount without worry if ( $ this -> isSuhosinRelevant ( ) ) { $ this -> ensureSuhosinMemory ( ) ; } } $ this -> registered = true ; } }
Registers global error handlers
Registers global error handlers