For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Can you add the 'b' flag to gzopen() for good measure? ("$fh = gzopen( $this->cachePath(), 'rb' );")
binary flag added with r110916.
Calling gzopen() on a plain text file seems rather scary to me, since with the resource loader, the user-supplied input can start from the first character, and there's no obvious reason why a malicious user couldn't supply a string starting with the GZIP magic signature.
I have put back the file_get_contents() with r111324