downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<PharFileInfo::hasMetadataPharFileInfo::isCompressed>
Last updated: Thu, 26 Jun 2008

PharFileInfo::isCRCChecked

(PECL phar:1.0.0-1.2.1)

PharFileInfo::isCRCChecked — Returns whether file entry has had its CRC verified

Description

bool PharFileInfo::isCRCChecked ( void )

This returns whether a file within a Phar archive has had its CRC verified.

Return Values

TRUE if the file has had its CRC verified, FALSE if not.

Examples

Example #1 A PharFileInfo::isCRCChecked() example

<?php
try
{
  
$p = new Phar('/path/to/my.phar', 0, 'my.phar');
  
$p['myfile.txt'] = 'hi';
  
$file = $p['myfile.txt'];
  
var_dump($file->isCRCChecked());
}
catch (Exception $e) {
   echo
'Create/modify operations failed on my.phar: ', $e;
}
?>

The above example will output:

bool(true)



add a noteadd a note User Contributed Notes
Returns whether file entry has had its CRC verified
There are no user contributed notes for this page.




<PharFileInfo::hasMetadataPharFileInfo::isCompressed>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs