downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

PharFileInfo::isCompressed> <PharFileInfo::hasMetadata
[edit] Last updated: Sat, 25 May 2013

view this page in

PharFileInfo::isCRCChecked

(PHP >= 5.3.0, PECL phar >= 1.0.0)

PharFileInfo::isCRCCheckedDevolver si la entrada de fichero tiene su CRC verificada

Descripción

bool PharFileInfo::isCRCChecked ( void )

Este método devuelve si un fichero dentro de un archivo Phar tiene su CRC verificada.

Valores devueltos

TRUE si el fichero tiene su CRC verificada, FALSE si no.

Ejemplos

Ejemplo #1 Un ejemplo de PharFileInfo::isCRCChecked()

<?php
try {
    
$p = new Phar('/ruta/a/mi.phar'0'mi.phar');
    
$p['mifichero.txt'] = 'hola';
    
$fichero $p['mifichero.txt'];
    
var_dump($fichero->isCRCChecked());
} catch (
Exception $e) {
    echo 
'Las operaciones de creación/modificación sobre mi.phar fallaron: '$e;
}
?>

El resultado del ejemplo sería:

bool(true)



add a note add a note User Contributed Notes PharFileInfo::isCRCChecked - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites