Function __global->supports_gzip

Definitions

sources/output_compression.php

  • Find whether Gzip is supported.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$live boolean No No True N/A N/A Check the current web client can support it
&$use_cmd_line boolean Yes No False N/A N/A Whether a command line call is needed to do the compression (returned by reference)

Returns

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether Gzip is supported.
 *
 * @param  boolean $live Check the current web client can support it
 * @param  boolean $use_cmd_line Whether a command line call is needed to do the compression (returned by reference)
 * @return boolean Whether it is
 */

function supports_gzip(bool $live = true, bool &$use_cmd_line = false) : bool