From 596ed80adf220920e619dab85bbc9a9aaaff5404 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 27 Feb 2013 00:59:41 -0800 Subject: hex2bin is a built-in function in PHP 5.4 --- include/text.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 747061d3b..1cccc6090 100644 --- a/include/text.php +++ b/include/text.php @@ -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. -- cgit v1.2.3