PEAR_Installer::install

PEAR_Installer::install() – パッケージファイルをインストールする

Synopsis

require_once 'PEAR/Installer.php';

array PEAR_Installer::install ( string $pkgfile , array $options = array() )

Description

指定したパッケージファイルの中のファイルをインストールします。

Parameter

string $pkgfile

パッケージファイルへのパス。

array $options

インストールオプション。オプションを有効にするには オプション名を配列のキーにし、対応する値を TRUE あるいは 1 にします。

  • $options['force'] = 1 - 強制的にインストールします。

  • $options['register-only'] = 1 - レジストリの更新のみ行い、ファイルはインストールしません。

  • $options['upgrade'] = 1 - 既存のインストールを更新します。

  • $options['soft'] = 1 - エラーメッセージを出力しません。

Return value

array 成功した場合にパッケージ情報を返します。

Throws

Possible PEAR_Error values
エラーコード エラーの値 意味 対応
  "    

Note

This function can not be called statically.