hex2bin is a built-in function in PHP 5.4

This commit is contained in:
friendica 2013-02-27 00:59:41 -08:00
parent 48d2f7e07d
commit 596ed80adf
2 changed files with 4 additions and 2 deletions

View file

@ -223,6 +223,7 @@ function unxmlify($s) {
// convenience wrapper, reverse the operation "bin2hex"
if(! function_exists('hex2bin')) {
function hex2bin($s) {
if(! (is_string($s) && strlen($s)))
return '';
@ -232,7 +233,8 @@ function hex2bin($s) {
}
return(pack("H*",$s));
}
}}
// Automatic pagination.
// To use, get the count of total items.

View file

@ -1 +1 @@
2013-02-26.236
2013-02-27.237