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

search for in the

PharData::setStub> <Phar::setMetadata
Last updated: Fri, 10 Oct 2008

view this page in

Phar::setSignatureAlgorithm

(PECL phar:1.1.0-1.2.1)

Phar::setSignatureAlgorithmphar のシグネチャのアルゴリズムを設定する

説明

array Phar::setSignatureAlgorithm ( int $sigtype )

注意: このメソッドは、php.iniphar.readonly0 でないと Phar オブジェクトで動作しません。それ以外の場合は PharException がスローされます。

phar のシグネチャのアルゴリズムを設定します。 シグネチャのアルゴリズムは Phar::MD5Phar::SHA1Phar::SHA256Phar::SHA512 あるいは Phar::PGP のいずれかでなければなりません (pgp は現時点ではまだサポートされておらず、自動的に SHA-1 に読みかえられます)。

パラメータ

sigtype

Phar::MD5Phar::SHA1Phar::SHA256Phar::SHA512 あるいは Phar::PGP のいずれか。

返り値

エラー / 例外

さまざまなエラーが発生した場合に UnexpectedValueException をスローします。 zip 形式や tar 形式の phar アーカイブに対してコールした場合は BadMethodCallException をスローします。 変更内容をディスクに書き込むときにエラーが発生した場合は PharException をスローします。



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

PharData::setStub> <Phar::setMetadata
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites