PEAR_Dependency2::validatePhpDependency()

PEAR_Dependency2::validatePhpDependency()  -- validatePhpDependency

概要

require_once '/Dependency2.php';

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

説明

Validate the running PHP version against the dependency. The implicit assumption is that the installer's PHP version is the same as the final script's PHP version. As with all dependency validation, true is returned on success, PEAR_Error on failure for required dependencies (and the PHP dependency is required). If the soft, force or ignore-errors options are specified, an array containing the error message will be returned instead.

パラメータ

array $dep

The dependency xml as represented in parsing

例外・エラー

throws no exceptions thrown

注意

この関数は、スタティックにコールする ことはできません。