dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09e86e3
)
Remove useless PHP version comparison from wfDebugBacktrace()
author
Ricordisamoa
<ricordisamoa@openmailbox.org>
Sat, 27 Feb 2016 04:21:03 +0000
(
05:21
+0100)
committer
Ricordisamoa
<ricordisamoa@openmailbox.org>
Sat, 27 Feb 2016 04:21:03 +0000
(
05:21
+0100)
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
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
eb174f2
..
5138018
100644
(file)
--- 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 );