PclZip::privCheckFileHeaders() –

You appear to be a bot. Output may be restricted

Description

Usage

PclZip::privCheckFileHeaders( $p_local_header, $p_central_header );

Parameters

$p_local_header
( mixed ) required
$p_central_header
( mixed ) required

Returns

void

Source

File name: wordpress/wp-admin/includes/class-pclzip.php
Lines:

1 to 29 of 29
  function privCheckFileHeaders(&$p_local_header, &$p_central_header)
  {
    $v_result=1;

    // ----- Check the static values
    // TBC
    if ($p_local_header['filename'] != $p_central_header['filename']) {
    }
    if ($p_local_header['version_extracted'] != $p_central_header['version_extracted']) {
    }
    if ($p_local_header['flag'] != $p_central_header['flag']) {
    }
    if ($p_local_header['compression'] != $p_central_header['compression']) {
    }
    if ($p_local_header['mtime'] != $p_central_header['mtime']) {
    }
    if ($p_local_header['filename_len'] != $p_central_header['filename_len']) {
    }

    // ----- Look for flag bit 3
    if (($p_local_header['flag'] & 8) == 8) {
          $p_local_header['size'] = $p_central_header['size'];
          $p_local_header['compressed_size'] = $p_central_header['compressed_size'];
          $p_local_header['crc'] = $p_central_header['crc'];
    }

    // ----- Return
    return $v_result;
  }
 

 View on GitHub View on Trac