original_string: protected function _decodeGzipBody($body)
      {
          if (!function_exists('gzinflate')) {
              throw new RuntimeException('Cannot decompress gzip response body without gzinflate()');
          }
          $offset = 0;
          // Look for gzip 'signature'
          if (substr($body, 0, 2) === "\x1f\x8b") {
              $offset = 2;
          }
          // Check the format byte
          if (substr($body, $offset, 1) === "\x08") {
              return gzinflate(substr($body, $offset + 8));
          }
      }
code: protected function _decodeGzipBody($body)
      {
          if (!function_exists('gzinflate')) {
              throw new RuntimeException('Cannot decompress gzip response body without gzinflate()');
          }
          $offset = 0;
          // Look for gzip 'signature'
          if (substr($body, 0, 2) === "\x1f\x8b") {
              $offset = 2;
          }
          // Check the format byte
          if (substr($body, $offset, 1) === "\x08") {
              return gzinflate(substr($body, $offset + 8));
          }
      }
code_tokens: protected function _decodeGzipBody ( $ body ) { if ( ! function_exists ( 'gzinflate' ) ) { throw new RuntimeException ( 'Cannot decompress gzip response body without gzinflate()' ) ; } $ offset = 0 ; // Look for gzip 'signature' if ( substr ( $ body , 0 , 2 ) === "\x1f\x8b" ) { $ offset = 2 ; } // Check the format byte if ( substr ( $ body , $ offset , 1 ) === "\x08" ) { return gzinflate ( substr ( $ body , $ offset + 8 ) ) ; } }
docstring: Uncompress a gzip response.
  
  Looks for gzip signatures, and if gzinflate() exists,
  the body will be decompressed.
  
  @param string $body Gzip encoded body.
  @return string
  @throws \RuntimeException When attempting to decode gzip content without gzinflate.
docstring_tokens: Uncompress a gzip response .