From 15d3b2b1f52e769dbb40d238b147719070347649 Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Thu, 11 Feb 2016 15:45:42 +0100 Subject: [PATCH] Remove gzdecode() polyfill from includes/GlobalFunctions.php Unnecessary since PHP 5.4.0 Change-Id: I8423b792488e3b3326ef9b702f1b84c9a2137952 --- includes/GlobalFunctions.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 66201b5ee4..1d9179f8aa 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -92,19 +92,6 @@ if ( !function_exists( 'mb_strrpos' ) ) { } } -// gzdecode function only exists in PHP >= 5.4.0 -// http://php.net/gzdecode -if ( !function_exists( 'gzdecode' ) ) { - /** - * @codeCoverageIgnore - * @param string $data - * @return string - */ - function gzdecode( $data ) { - return gzinflate( substr( $data, 10, -8 ) ); - } -} - // hash_equals function only exists in PHP >= 5.6.0 // http://php.net/hash_equals if ( !function_exists( 'hash_equals' ) ) { -- 2.20.1