Rohan013 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/142287
Change subject: Replaces gzopen() function with gzopen64()
......................................................................
Replaces gzopen() function with gzopen64()
The patch replaces the function where gzopen() doesn't exist. For example,
Ubuntu 14.04.
Bug: 66952
Change-Id: Ibdbf069ba27bd5d1f4f5a6736c27dd62cd82fde7
---
M includes/GlobalFunctions.php
1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/87/142287/1
diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php
index c67cbd5..e625bb7 100644
--- a/includes/GlobalFunctions.php
+++ b/includes/GlobalFunctions.php
@@ -105,6 +105,20 @@
}
}
+/**
+ * When PHP 5.3+ is compiled against certain versions of Zlib,
+ * gzopen is replace by gzopen64.
+ */
+if ( !function_exists( 'gzopen' ) ) {
+ /**
+ * @codeCoverageIgnore
+ * @return pointer to the file, false on failure
+ */
+ function gzopen( $file, $flags ) {
+ return gzopen64( $file, $flags );
+ }
+}
+
// hash_equals function only exists in PHP >= 5.6.0
if ( !function_exists( 'hash_equals' ) ) {
/**
--
To view, visit https://gerrit.wikimedia.org/r/142287
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibdbf069ba27bd5d1f4f5a6736c27dd62cd82fde7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Rohan013 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits