php/php-src — pull request #51 by srgoogleguy (2012-04-11 07:03:49+00:00)
Title: Bug #61660 bin2hex(hex2bin($data)) != $data

This bug fix now introduces a second optional argument to hex2bin that will comply with BC.
Additionally, the patch prevents an empty string from being accepted (as the existing patch did not).