public static function enableExceptionHandler() { if (self::$exception === false) { set_exception_handler(array('GWF_Debug', 'exception_handler')); self::$exception = true; } }