Replace hex2bin() with pack() since hex2bin is not in PHP 5.3 and I always want v1.x to support PHP 5.3.