1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Unuse binary characters

This commit is contained in:
Jakub Vrana
2012-09-22 06:12:56 -07:00
parent 906345ad81
commit f3c59bb3a5
2 changed files with 20 additions and 10 deletions

View File

@@ -970,3 +970,13 @@ function lzw_decompress($binary) {
}
return $return;
}
// used in compiled version
function latin_binary($s) {
return preg_replace_callback('~ (.)~', 'latin_binary_callback', $s);
}
// used in compiled version
function latin_binary_callback($match) {
return chr(ord($match[1]) - 48); // 48 = ord('0')
}