PEAR_Dependency2::validateArchDependency() – Specify a complex dependency on an OS/processor/kernel version, Use OS for simple operating system dependency.


require_once '/Dependency2.php';

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


This is the only dependency that accepts an ereg()able pattern. The pattern will be matched against the php_uname() output parsed by OS_Guess As with all dependency validation, true is returned on success, PEAR_Error on failure for required dependencies (and the arch 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

Contents of the dependency, as parsed from xml.


throws no exceptions thrown


This function can not be called statically.

Convert a 1.0 dep into a 2.0 dep (Previous) validate a package.xml 1.0 dependency (Next)
Last updated: Fri, 09 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.