PEAR_Dependency2::validateOsDependency

PEAR_Dependency2::validateOsDependency()

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

Description

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.

Parameter

array $dep

Dependency contents as parsed from xml

Throws

throws no exceptions thrown

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.