cvs: pear /Cache_Lite Lite.php

From: Date: Sun, 23 Mar 2003 20:10:55 +0000
Subject: cvs: pear /Cache_Lite Lite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-9597@lists.php.net to get a copy of this message
fab Sun Mar 23 15:10:55 2003 EDT Modified files: /pear/Cache_Lite Lite.php Log: Little fix for caching binary data under Windows (thanks to Simeon Franklin <simeon@bluesunstudios.com>) Index: pear/Cache_Lite/Lite.php diff -u pear/Cache_Lite/Lite.php:1.11 pear/Cache_Lite/Lite.php:1.12 --- pear/Cache_Lite/Lite.php:1.11 Sun Feb 23 11:18:53 2003 +++ pear/Cache_Lite/Lite.php Sun Mar 23 15:10:55 2003 @@ -15,7 +15,7 @@ * * @package Cache_Lite * @category Caching -* @version $Id: Lite.php,v 1.11 2003/02/23 16:18:53 fab Exp $ +* @version $Id: Lite.php,v 1.12 2003/03/23 20:10:55 fab Exp $ * @author Fabien MARTY <fab@php.net> */ @@ -472,7 +472,7 @@ */ function _read() { - $fp = @fopen($this->_file, "r"); + $fp = @fopen($this->_file, "rb"); if ($this->_fileLocking) @flock($fp, LOCK_SH); if ($fp) { clearstatcache(); // because the filesize can be cached by PHP itself... @@ -509,7 +509,7 @@ */ function _write($data) { - $fp = @fopen($this->_file, "w"); + $fp = @fopen($this->_file, "wb"); if ($fp) { if ($this->_fileLocking) @flock($fp, LOCK_EX); if ($this->_readControl) {

« previous php.pear.cvs (#9597) next »