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

Return value

mixed - FALSE if dependency could be resolved successfully(!); or an PEAR_DEPENDENCY_* constant in case of an unresolved dependency.


This function can not be called statically.

Maps the xml dependency definition (Previous) Check Operating system dependency (Next)
Last updated: Wed, 25 Apr 2018 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.