PharFileInfo->getCRC32

(no version information, might be only in CVS)

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

Descrizione

int PharFileInfo->getCRC32 ( void )

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

Valori restituiti

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

Esempi

Esempio 1. A PharFileInfo->getCRC32() example

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

Il precedente esempio visualizzerà:

3633523372