PEAR_Dependency::checkExtension()
PEAR_Dependency::checkExtension() -- Check Extension dependency
概要
require_once 'PEAR/Dependency.php'; |
mixed PEAR_Dependency::checkExtension (mixed &$errmsg, string $name [, string $req = NULL [, string $relation = 'has']])
説明
Extension dependencies check method
パラメータ
- mixed
&$errmsg
this variable will contains an error message, if
check fail
- string
$name
Name of the extension to test
- string
$req
Required extension version to compare with
- string
$relation
How to compare versions with eachother
返り値
mixed -
FALSE if dependency could be resolved
successfully(!); or an
PEAR_DEPENDENCY_* constant
in case of an unresolved dependency.
注意
この関数は、スタティックにコールする
ことはできません。