From: Antoine Musso Date: Wed, 8 Feb 2012 07:03:20 +0000 (+0000) Subject: make gzopen() portable by using binary flag X-Git-Tag: 1.31.0-rc.0~24877 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=564919a0d579c6a825cce475cf0a844e78592753;p=lhc%2Fweb%2Fwiklou.git make gzopen() portable by using binary flag r110871 forgot the 'b' flag which make sure gzopen handle file content in binary form. That is for portability accross platforms. --- diff --git a/includes/cache/FileCacheBase.php b/includes/cache/FileCacheBase.php index 29cc8a13fc..37401655c6 100644 --- a/includes/cache/FileCacheBase.php +++ b/includes/cache/FileCacheBase.php @@ -117,7 +117,7 @@ abstract class FileCacheBase { */ public function fetchText() { // gzopen can transparently read from gziped or plain text - $fh = gzopen( $this->cachePath(), 'r' ); + $fh = gzopen( $this->cachePath(), 'rb' ); return stream_get_contents( $fh ); }