PEAR Manual
Prev |  | Next

# PEAR_PackageFileManager::detectDependencies()

PEAR_PackageFileManager::detectDependencies() -- use PHP_CompatInfo to auto-detect PHP and extension dependencies.

## Synopsis

    require_once 'PEAR/PackageFileManager.php';

``void|PEAR_Error PEAR_PackageFileManager::detectDependencies` ()`

## Description

Use addDependency() to add package dependencies

## Throws

throws PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS

throws PEAR_PACKAGEFILEMANAGER_PHP_COMPAT_NOT_INSTALLED

throws PEAR_PACKAGEFILEMANAGER_NO_PHPCOMPATINFO

## See

see PEAR_PackageFileManager::addDependency()

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_PackageFileManager::addRole() | Up | PEAR_PackageFileManager::debugPackageFile()