From: Ricordisamoa Date: Thu, 11 Feb 2016 14:45:42 +0000 (+0100) Subject: Remove gzdecode() polyfill from includes/GlobalFunctions.php X-Git-Tag: 1.31.0-rc.0~7979^2 X-Git-Url: http://git.cyclocoop.org/data/modifier.php?a=commitdiff_plain;h=15d3b2b1f52e769dbb40d238b147719070347649;p=lhc%2Fweb%2Fwiklou.git Remove gzdecode() polyfill from includes/GlobalFunctions.php Unnecessary since PHP 5.4.0 Change-Id: I8423b792488e3b3326ef9b702f1b84c9a2137952 --- 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' ) ) {