function _writeDepDB(&$deps)
    {
        if (PEAR::isError($e = $this->_lock(LOCK_EX))) {
            return $e;
        }

        if (!$fp = fopen($this->_depdb, 'wb')) {
            $this->_unlock();
            return PEAR::raiseError("Could not open dependencies file `".$this->_depdb."' for writing");
        }

        $rt = get_magic_quotes_runtime();
        set_magic_quotes_runtime(0);
        fwrite($fp, serialize($deps));
        set_magic_quotes_runtime($rt);
        fclose($fp);
        $this->_unlock();
        $this->_cache = $deps;
        return true;
    }
function _writeDepDB(&$deps)
    {
        if (PEAR::isError($e = $this->_lock(LOCK_EX))) {
            return $e;
        }

        if (!$fp = fopen($this->_depdb, 'wb')) {
            $this->_unlock();
            return PEAR::raiseError("Could not open dependencies file `".$this->_depdb."' for writing");
        }

        $rt = get_magic_quotes_runtime();
        set_magic_quotes_runtime(0);
        fwrite($fp, serialize($deps));
        set_magic_quotes_runtime($rt);
        fclose($fp);
        $this->_unlock();
        $this->_cache = $deps;
        return true;
    }
function _writeDepDB ( & $ deps ) { if ( PEAR :: isError ( $ e = $ this -> _lock ( LOCK_EX ) ) ) { return $ e ; } if ( ! $ fp = fopen ( $ this -> _depdb , 'wb' ) ) { $ this -> _unlock ( ) ; return PEAR :: raiseError ( "Could not open dependencies file `" . $ this -> _depdb . "' for writing" ) ; } $ rt = get_magic_quotes_runtime ( ) ; set_magic_quotes_runtime ( 0 ) ; fwrite ( $ fp , serialize ( $ deps ) ) ; set_magic_quotes_runtime ( $ rt ) ; fclose ( $ fp ) ; $ this -> _unlock ( ) ; $ this -> _cache = $ deps ; return true ; }
Write out the dependency database to disk
@param array the database
@return true|PEAR_Error
@access private
Write out the dependency database to disk