\PhpZip\ExceptionCrc32Exception

Thrown to indicate a CRC32 mismatch between the declared value in the Central File Header and the Data Descriptor or between the declared value and the computed value from the decompressed data.

The exception detail message is the name of the ZIP entry.

Summary

Methods
Properties
Constants
__construct()
getExpectedCrc()
getActualCrc()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$expectedCrc
$actualCrc
N/A

Properties

$expectedCrc

$expectedCrc : int

Expected crc.

Type

int

$actualCrc

$actualCrc : int

Actual crc.

Type

int

Methods

__construct()

__construct(string  $name, int  $expected, int  $actual) : mixed

Crc32Exception constructor.

Parameters

string $name
int $expected
int $actual

Returns

mixed —

getExpectedCrc()

getExpectedCrc() : int

Returns expected crc.

Returns

int —

getActualCrc()

getActualCrc() : int

Returns actual crc.

Returns

int —