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::getPharFlagsPhar ファイルエントリのフラグを返す

説明

int PharFileInfo::getPharFlags ( void )

この関数は、Phar のマニフェスト内のフラグセットを返します。 現在の実装では、これは常に 0 を返します。

返り値

Phar フラグを返します (現在の実装では、常に 0 となります)。

例1 PharFileInfo::getPharFlags() の例

<?php
try {
    
$p = new Phar('/path/to/my.phar'0'my.phar');
    
$p['myfile.txt'] = 'hi';
    
$file $p['myfile.txt'];
    
var_dump($file->getPharFlags());
} catch (
Exception $e) {
    echo 
'my.phar を作成/変更できません: '$e;
}
?>

上の例の出力は以下となります。

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 | stats | sitemap | contact | advertising | mirror sites