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

search for in the

PharFileInfo::hasMetadata> <PharFileInfo::getMetadata
[edit] Last updated: Fri, 25 May 2012

view this page in

PharFileInfo::getPharFlags

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

PharFileInfo::getPharFlagsRetourne les drapeaux du fichier Phar

Description

int PharFileInfo::getPharFlags ( void )

Cette méthode retourne les drapeaux fixés dans le manifeste pour un Phar. Elle retournera toujours 0 dans son implémentation actuelle.

Valeurs de retour

Les drapeaux Phar (toujours 0 dans son implémentation actuelle)

Exemples

Exemple #1 Un exemple avecPharFileInfo::getPharFlags()

<?php
try {
    
$p = new Phar('/chemin/vers/mon.phar'0'mon.phar');
    
$p['monfichier.txt'] = 'salut';
    
$file $p['monfichier.txt'];
    
var_dump($file->getPharFlags());
} catch (
Exception $e) {
    echo 
'Ne peut pas créer/modifier mon.phar: '$e;
}
?>

L'exemple ci-dessus va afficher :

int(0)



add a note add a note User Contributed Notes PharFileInfo::getPharFlags
There are no user contributed notes for this page.

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