public static function relenquish() { if (self::$_locked) { return; } if (!is_null(self::$_oldErrorHandler) && self::$_oldErrorHandler) { set_error_handler(self::$_oldErrorHandler); self::$_oldErrorHandler = NULL; } else { restore_exception_handler(); } if (!is_null(self::$_oldExceptionHandler) && self::$_oldExceptionHandler) { set_error_handler(self::$_oldExceptionHandler); self::$_oldExceptionHandler = NULL; } else { restore_exception_handler(); } self::$_inControl = FALSE; }