previousPEAR_PackageFileManager::addMaintainer (Previous) (Next) PEAR_PackageFileManager::addGlobalReplacementnext

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR_PackageFileManager::addPlatformException

PEAR_PackageFileManager::addPlatformException() – インストール時のプラットフォーム条件を追加する

Synopsis

require_once 'PEAR/PackageFileManager.php';

void PEAR_PackageFileManager::addPlatformException ( string $path , string $platform )

Description

特別な追加情報が必要ない場合、プラットフォームを指定する文字列の書式は OS-version-cpu-extra でなければなりません。また、OS は "windows." のように小文字で指定する必要があります。 条件に一致するかどうかは正規表現を使用して調べられますが、 ワイルドカード文字には .* や .? ではなく * および ? を使用します。 hpux/aix/irix/linux はすべて排他的であることに注意しましょう。 「Windows 以外」を選択するには、(*ix|*ux|darwin) のように指定します。 PEAR 1.3.2 以降なら、!windows のように指定できます。

この情報は、OS/Guess.php のソースを調べて得たものです。 もしここで説明している意味がよくわからない場合は、このファイルを 読みましょう。

Parameter

string $path

ファイルへの相対パス (packagedirectory オプションの値を起点とする)。

string $platform

プラットフォームを示す文字列。

Throws

例外はスローされません。

Note

This function can not be called statically.

previousPEAR_PackageFileManager::addMaintainer (Previous) (Next) PEAR_PackageFileManager::addGlobalReplacementnext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.