From 564919a0d579c6a825cce475cf0a844e78592753 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 8 Feb 2012 07:03:20 +0000 Subject: [PATCH] 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. --- includes/cache/FileCacheBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.20.1