Browse Source

fix 3 bugs

- optional dependencies not supported
- PHP 5 references (#362)
- incorrect index determination
PEAR_1_4DEV
Greg Beaver 23 years ago
parent
commit
8425c2a16b
  1. 7
      pear/PEAR/DependencyDB.php

7
pear/PEAR/DependencyDB.php

@ -152,11 +152,12 @@ class PEAR_DependencyDB extends PEAR
function &_getDepDB()
{
if (!$fp = fopen($this->depdb_file, 'r')) {
return $this->raiseError("Could not open dependencies file `".$this->depdb_file."'");
$err = $this->raiseError("Could not open dependencies file `".$this->depdb_file."'");
return $err;
}
$data = fread($fp, filesize($this->depdb_file));
$data = unserialize(fread($fp, filesize($this->depdb_file)));
fclose($fp);
return unserialize($data);
return $data;
}
// }}}

Loading…
Cancel
Save