Use hex2bin() instead of pack()
authorKevin Israel <pleasestand@live.com>
Sat, 20 Feb 2016 01:43:21 +0000 (20:43 -0500)
committerKevin Israel <pleasestand@live.com>
Sat, 20 Feb 2016 05:27:24 +0000 (00:27 -0500)
commit6492c009ef539f7c3c3f864bab8482aee255a6ab
tree5748141331cc260d8a4ef02d1713446f8e283c76
parent8760af25d07a4875af66ef98a9081aa0202ba17c
Use hex2bin() instead of pack()

This function was added in PHP 5.4.0 and can be used now that MediaWiki
only works with PHP 5.5.9 or higher.

Also fixed a bug in ApiQueryCategoryMembers::validateHexSortkey() that
allowed a single line feed at the end of the string to pass.

Change-Id: I5b577e7dcc5fb6a06ab550429aae657dbcc79083
includes/api/ApiQueryCategoryMembers.php
tests/phpunit/includes/utils/MWCryptHKDFTest.php
tests/phpunit/includes/utils/MWCryptHashTest.php