PEAR_Registry::setPackageDep() – Update or insert dependencies of a Package


require_once 'PEAR/Registry.php';

mixed PEAR_Registry::setPackageDep ( string $package , string $new_version , array $rel_deps = array() )


Update or insert a the dependencies of a package, prechecking that the package won't break any dependency in the process. (Dependencies of type 'pkg' only.


string $package

Package name

string $new_version

Version of the Package

array $rel_deps

Package dependencies

Return value

mixed - TRUE if no dependencies found; or array with names of missing or outdated Packages


Possible PEAR_Error values
Error code Error value Meaning Solution


This function can not be called statically.

Remove dependency information of a Package (Previous) Update Package information (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.