From 8425c2a16bcb014c42af2c80d2e819f1f4e5b8da Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 6 Dec 2003 23:07:52 +0000 Subject: [PATCH] fix 3 bugs - optional dependencies not supported - PHP 5 references (#362) - incorrect index determination --- pear/PEAR/DependencyDB.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pear/PEAR/DependencyDB.php b/pear/PEAR/DependencyDB.php index fadc23f5ed..99c9611886 100644 --- a/pear/PEAR/DependencyDB.php +++ b/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; } // }}} -- 2.50.1