A warning is thrown if the input string is of odd length.

This behaviour is new in PHP 5.4.1.

http://php.net/manual/en/function.hex2bin.php