PEAR_Dependency2::validateDependency1 (Previous) (Next) PEAR_Dependency2::validateOsDependency

View this page in Last updated: Sun, 24 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Plain HTML

PEAR_Dependency2::validateExtensionDependency()

PEAR_Dependency2::validateExtensionDependency()  -- validate a dependency on a PHP extension

Description

This validates against actual in-memory extensions, and will not attempt to locate extensions on disk. To do this, a dependency should be a package dependency with the <providesextension> tag.

As with all dependency validation, true is returned on success, PEAR_Error on failure for required dependencies. If the soft, force or ignore-errors options are specified, an array containing the error message will be returned instead.

Parameter

array $dep

dependency contents as parsed from xml

boolean $required

Whether this is a required or optional dependency

Throws

throws no exceptions thrown

Note

This function can not be called statically.

PEAR_Dependency2::validateDependency1 (Previous) (Next) PEAR_Dependency2::validateOsDependency

Download Documentation Last updated: Sun, 24 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.