From: Ricordisamoa Date: Sat, 27 Feb 2016 04:21:03 +0000 (+0100) Subject: Remove useless PHP version comparison from wfDebugBacktrace() X-Git-Tag: 1.31.0-rc.0~7798^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=1a998ef523d53611ead0656dcbc08f87cba1bb81;p=lhc%2Fweb%2Fwiklou.git Remove useless PHP version comparison from wfDebugBacktrace() MediaWiki 1.27 only supports PHP 5.5.9 and above, therefore it is no more necessary to check that the running PHP version is equal to or greater than 5.4.0. Change-Id: I819c625e173cbf2a54ef614d742fe01f70be8efc --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index eb174f2e3b..5138018c99 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1557,7 +1557,7 @@ function wfDebugBacktrace( $limit = 0 ) { return []; } - if ( $limit && version_compare( PHP_VERSION, '5.4.0', '>=' ) ) { + if ( $limit ) { return array_slice( debug_backtrace( DEBUG_BACKTRACE_PROVIDE_OBJECT, $limit + 1 ), 1 ); } else { return array_slice( debug_backtrace(), 1 );