mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:35:12 +00:00
hex2bin is a built-in function in PHP 5.4
This commit is contained in:
parent
48d2f7e07d
commit
596ed80adf
2 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -1 +1 @@
|
|||
2013-02-26.236
|
||||
2013-02-27.237
|
||||
|
|
Loading…
Reference in a new issue