public static function shutdown_handler()
	{
		$last_error = error_get_last();

		// Only show valid fatal errors
		if ($last_error AND in_array($last_error['type'], static::$fatal_levels))
		{
			$severity = static::$levels[$last_error['type']];
			logger(\Fuel::L_ERROR, $severity.' - '.$last_error['message'].' in '.$last_error['file'].' on line '.$last_error['line']);

			$error = new \ErrorException($last_error['message'], $last_error['type'], 0, $last_error['file'], $last_error['line']);
			if (\Fuel::$env != \Fuel::PRODUCTION)
			{
				static::show_php_error($error);
			}
			else
			{
				static::show_production_error($error);
			}

			exit(1);
		}
	}
public static function shutdown_handler()
	{
		$last_error = error_get_last();

		// Only show valid fatal errors
		if ($last_error AND in_array($last_error['type'], static::$fatal_levels))
		{
			$severity = static::$levels[$last_error['type']];
			logger(\Fuel::L_ERROR, $severity.' - '.$last_error['message'].' in '.$last_error['file'].' on line '.$last_error['line']);

			$error = new \ErrorException($last_error['message'], $last_error['type'], 0, $last_error['file'], $last_error['line']);
			if (\Fuel::$env != \Fuel::PRODUCTION)
			{
				static::show_php_error($error);
			}
			else
			{
				static::show_production_error($error);
			}

			exit(1);
		}
	}
public static function shutdown_handler ( ) { $ last_error = error_get_last ( ) ; // Only show valid fatal errors if ( $ last_error AND in_array ( $ last_error [ 'type' ] , static :: $ fatal_levels ) ) { $ severity = static :: $ levels [ $ last_error [ 'type' ] ] ; logger ( \ Fuel :: L_ERROR , $ severity . ' - ' . $ last_error [ 'message' ] . ' in ' . $ last_error [ 'file' ] . ' on line ' . $ last_error [ 'line' ] ) ; $ error = new \ ErrorException ( $ last_error [ 'message' ] , $ last_error [ 'type' ] , 0 , $ last_error [ 'file' ] , $ last_error [ 'line' ] ) ; if ( \ Fuel :: $ env != \ Fuel :: PRODUCTION ) { static :: show_php_error ( $ error ) ; } else { static :: show_production_error ( $ error ) ; } exit ( 1 ) ; } }
Native PHP shutdown handler

@return  string
Native PHP shutdown handler