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 +++- version.inc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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. diff --git a/version.inc b/version.inc index 8c23eaf17..125144eb7 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-02-26.236 +2013-02-27.237 -- cgit v1.2.3