PEAR_Dependency2::validatePearinstallerDependency

PEAR_Dependency2::validatePearinstallerDependency() – validatePearinstallerDependency

Synopsis

require_once '/Dependency2.php';

true|PEAR_Error|array PEAR_Dependency2::validatePearinstallerDependency ( array $dep )

Description

実行中の PEAR のバージョンの依存性を検証します。 この依存性は、現在の package.xml と互換性のないバージョンの PEAR の使用を避けるために設計されています。 その他のすべての依存性検証と同様、成功した場合に true、要求された検証に失敗した場合 (そして要求されたのが PEAR インストーラ依存性だった場合) に PEAR_Error を返します。オプション softforce あるいは ignore-errors が指定された場合は、エラーメッセージを含む配列を返します。

Parameter

mixed $dep

Throws

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

Note

This function can not be called statically.