PharFileInfo->getCRC32

(no version information, might be only in CVS)

PharFileInfo->getCRC32 -- Returns CRC32 code or throws an exception if not CRC checked

Description

int PharFileInfo->getCRC32 ( void )

This returns the crc32() checksum of the file within the Phar archive.

Return Values

The crc32() checksum of the file within the Phar archive.

Examples

Example 1. A PharFileInfo->getCRC32() example

<?php
$p
= new Phar('my.phar');
$p['myfile.txt'] = 'hi';
$file = $p['myfile.txt'];
echo
$file->getCRC32();
?>

The above example will output:

3633523372