Description
This returns the complete tree of extended dependencies of a single installed package.
For instance, a real-world example. package SOAP depends on Mail_Mime, HTTP_Request, Net_URL, Net_DIME. package HTTP_Request depends on Net_URL, Net_Socket. This method will return an array
similar to:
<?php
array(
'pear.php.net' =>
array(
'mail_mime' =>
array('name' => 'Mail_Mime',
'channel' => 'pear.php.net'),
'http_request' =>
array('name' => 'HTTP_Request',
'channel' => 'pear.php.net'),
'net_url' =>
array('name' => 'Net_URL',
'channel' => 'pear.php.net',
'min' => '1.0.12'),
'net_dime' =>
array('name' => 'Net_DIME',
'channel' => 'pear.php.net'),
'net_socket' =>
array('name' => 'Net_Socket',
'channel' => 'pear.php.net'),
),
);
?> |
Note that this should not be relied upon for exact dependencies. In the example above, the
returned dependency will be that of HTTP_Request upon Net_URL, which is stricter than SOAP's
dependency upon Net_URL. In other words, if there are two similar dependencies, the last
one encountered will be returned.