PEAR_Dependency2::validateOsDependency() – Specify a dependency on an OS. Use arch for detailed os/processor information


require_once '/Dependency2.php';

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


There are two generic OS dependencies that will be the most common, unix and windows. Other options are linux, freebsd, darwin (OS X), sunos, irix, hpux, aix. As with all dependency validation, true is returned on success, PEAR_Error on failure for required dependencies (and the OS 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

Dependency contents as parsed from xml


throws no exceptions thrown


This function can not be called statically.

validate a dependency on a PHP extension (Previous) validatePackage (Next)
Last updated: Tue, 24 Nov 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.