/**
  * Retrieve the 'deps' option passed to the constructor
  *
  * @return array|PEAR_Error
  * @access private
  * @since  0.1
  */
 function _getDependencies()
 {
     if ($this->_detectDependencies) {
         $this->_traverseFileArray($this->_struc, $ret);
         $compatinfo = new PHP_CompatInfo();
         $info = $compatinfo->parseArray($ret);
         $ret = $this->addDependency('php', $info['version'], 'ge', 'php', false);
         if (is_a($ret, 'PEAR_Error')) {
             return $ret;
         }
         foreach ($info['extensions'] as $ext) {
             $this->addDependency($ext, '', 'has', 'ext', false);
         }
     }
     if (isset($this->_packageXml['release_deps']) && is_array($this->_packageXml['release_deps'])) {
         return $this->_packageXml['release_deps'];
     } else {
         return array();
     }
 }
 /**
  * Retrieve the 'deps' option passed to the constructor
  *
  * @access private
  * @return void|PEAR_Error
  * @since  1.6.0a1
  */
 function _getDependencies()
 {
     if ($this->_detectDependencies) {
         $this->_traverseFileArray($this->_struc, $ret);
         $compatinfo = new PHP_CompatInfo();
         $info = $compatinfo->parseArray($ret, $this->_detectDependencies);
         $max_version = empty($info['max_version']) ? false : $info['max_version'];
         $ret = $this->setPhpDep($info['version'], $max_version);
         if (is_a($ret, 'PEAR_Error')) {
             return $ret;
         }
         foreach ($info['extensions'] as $ext) {
             $this->addExtensionDep('required', $ext);
         }
     }
     return;
 }