Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 16609 программистов и 1698 роботов. Сейчас ищут 1808 программистов ...
PEAR_Dependency::checkPackage
Вернуться к: PEAR_Dependency
PEAR_Dependency::checkPackage
PEAR_Dependency::checkPackage() – check Package dependency
Synopsis
require_once 'PEAR/Dependency.php';
mixed PEAR_Dependency::checkPackage ( mixed &$errmsg , string $name , string $req = null , string $relation = 'has' )
Package dependencies check method
Parameter
- string &$errmsg
-
this variable will contains an error message, if check fail
- string $name
-
Name of the package to test
- string $req
-
Required package version to compare with
- string $relation
-
How to compare versions with eachother
Return value
mixed - FALSE if dependency could be resolved successfully(!); or an PEAR_DEPENDENCY_* constant in case of unresolved dependency.
Note
This function can not be called statically.
Вернуться к: PEAR_Dependency