PEAR_Dependency2::validateArchDependency

PEAR_Dependency2::validateArchDependency()

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

Description

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.

Parameter

array $dep

Contents of the dependency, 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.