for PHP5.4 (internal hex2bin)
Merge remote-tracking branch 'remotes/miko2u/master'