PharData クラス
(PHP 5 >= 5.3.0, PHP 7, PECL phar >= 2.0.0)
はじめに
PharData クラスは、実行可能形式でない tar アーカイブや
zip アーカイブへのアクセスや作成のための高レベルインターフェイスを提供します。
これらのアーカイブにはスタブが含まれておらず、
phar 拡張モジュールから実行することはできません。
そのため、PharData クラスによる通常の zip および tar ファイルの作成や
操作は php.ini の phar.readonly
が 1
であっても可能です。
クラス概要
public addFile
(
string $file
,
string $localname
= ?
) :
void
public addFromString
(
string $localname
,
string $contents
) :
void
public __construct
(
string $fname
,
int $flags
= ?
,
string $alias
= ?
,
int $format
= Phar::TAR
)
public copy
(
string $oldfile
,
string $newfile
) :
bool
public delete
(
string $entry
) :
bool
public extractTo
(
string $pathto
,
string|array|null $files
= null
,
bool $overwrite
= false
) :
bool
public offsetSet
(
string $offset
,
string $value
) :
void
public setAlias
(
string $alias
) :
bool
public setDefaultStub
(
string $index
= ?
,
string $webindex
= ?
) :
bool
public setStub
(
string $stub
,
int $len
= -1
) :
bool
}
目次
There are no user contributed notes for this page.