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:
7b26ce7
)
PHPVersionCheck: Properly check for `xml` extension in PHP 7.2+
author
Kunal Mehta
<legoktm@member.fsf.org>
Sat, 14 Apr 2018 22:31:00 +0000
(15:31 -0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Wed, 25 Apr 2018 00:46:16 +0000
(17:46 -0700)
In 7.2, the `utf8_encode` function was moved into core PHP, and is no
longer a part of the `xml` extension. Use a different function to check
for the existence of it.
Change-Id: Ib50c1a59dd9c2a8777b07b2f7a3dd638a55832c6
includes/PHPVersionCheck.php
patch
|
blob
|
history
diff --git
a/includes/PHPVersionCheck.php
b/includes/PHPVersionCheck.php
index
37d4632
..
e9db1b3
100644
(file)
--- a/
includes/PHPVersionCheck.php
+++ b/
includes/PHPVersionCheck.php
@@
-30,7
+30,7
@@
class PHPVersionCheck {
var $mwVersion = '1.31';
var $functionsExtensionsMapping = array(
'mb_substr' => 'mbstring',
- '
utf8_encod
e' => 'xml',
+ '
xml_parser_creat
e' => 'xml',
'ctype_digit' => 'ctype',
'json_decode' => 'json',
'iconv' => 'iconv',