Skip to content

Commit 71116bc

Browse files
committed
12.04 compatability fix
1 parent 33d82a6 commit 71116bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ protected function convertTypes($result,&$values,&$fields) {
18141814
$values[$i] = $v + 0;
18151815
}
18161816
else if ($this->db->isBinaryType($fields[$i])) {
1817-
$values[$i] = base64_encode(hex2bin($v));
1817+
$values[$i] = base64_encode(pack("H*",$v));
18181818
}
18191819
else if ($this->db->isJsonType($fields[$i])) {
18201820
$values[$i] = $this->db->jsonDecode($v);

0 commit comments

Comments
 (0)