PHPVersionCheck: Properly check for `xml` extension in PHP 7.2+
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 14 Apr 2018 22:31:00 +0000 (15:31 -0700)
committerLegoktm <legoktm@member.fsf.org>
Wed, 25 Apr 2018 01:02:02 +0000 (01:02 +0000)
commit1bd573752fcdc21f26780258029ed38b90093ed7
tree3a9c3361fd679313691dd72d1282e9700bc03cb3
parentcad9b7ca365c4be4cde27c7cd4dc708abe37b61d
PHPVersionCheck: Properly check for `xml` extension in PHP 7.2+

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
(cherry picked from commit 9e5785b7204e6a927e7f60ce4cbdeedad8f45818)
includes/PHPVersionCheck.php