mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Remove unnecessary polyfill for hex2bin()
This commit is contained in:
parent
87131a1b93
commit
f73580945d
1 changed files with 0 additions and 15 deletions
|
|
@ -497,21 +497,6 @@ function include_and_ignore_output($filename)
|
|||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Polyfill for hex2bin() which does not exist in PHP 5.3.
|
||||
*
|
||||
* @param string $hex The hexadecimal string to convert to binary
|
||||
* @return string
|
||||
*/
|
||||
if (!function_exists('hex2bin'))
|
||||
{
|
||||
function hex2bin($hex)
|
||||
{
|
||||
if (strlen($hex) % 2) $hex = '0' . $hex;
|
||||
return pack('H*', $hex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts any value to either true or false.
|
||||
* Based on util.php <https://github.com/brandonwamboldt/utilphp>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue