Copied reproduction code from bugs.php.net to phpt

Original code submitted by bphelpsen at gmail dot com
Modified to handle testing on 64-bit systems in addition to the original 32-bit