PharFileInfo->getCRC32

(no version information, might be only in CVS)

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

Описание

int PharFileInfo->getCRC32 ( void )

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

Возвращаемые значения

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

Примеры

Пример 1. A PharFileInfo->getCRC32() example

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

Результат выполнения данного примера:

3633523372