PEAR_Dependency::checkPHP

PEAR_Dependency::checkPHP() – PHP のバージョンを調べる

Synopsis

require_once 'PEAR/Dependency.php';

mixed PEAR_Dependency::checkPHP ( mixed &$errmsg , string $req , string $relation = 'ge' )

Description

PHP のバージョンを調べるメソッドです。

Parameter

mixed &$errmsg

チェックに失敗した場合に、この変数にエラーメッセージが含まれます。

string $req

比較したいバージョン。

string $relation

バージョンを比較する方法。

Return value

依存性が解決できた(!) ときに FALSE、 できなかった場合に PEAR_DEPENDENCY_* 定数を返します。

Note

This function can not be called statically.