r110916 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r110915
|
r110916
|
r110917
>
Date:
07:03, 8 February 2012
Author:
hashar
Status:
ok
Tags:
Comment:
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.
Modified paths:
/trunk/phase3/includes/cache/FileCacheBase.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/cache/FileCacheBase.php
—
—
@@ -117,7 +117,7 @@
118
118
*/
119
119
public function fetchText() {
120
120
// gzopen can transparently read from gziped or plain text
121
- $fh = gzopen( $this->cachePath(), 'r' );
121
+ $fh = gzopen( $this->cachePath(), 'rb' );
122
122
return stream_get_contents( $fh );
123
123
}
124
124
Sign-offs
User
Flag
Date
Nikerabbit
inspected
21:23, 8 February 2012
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r110871
simplify FileCacheBase::fetchText...
hashar
20:47, 7 February 2012
Status & tagging log
07:51, 8 February 2012
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r110916
[
removed:
new
added:
ok]