Fixed bug #64037 (wrong value returned when using a negative numeric field equal to the scale)
Fixed bug #62024 (unable to run consecutive prepared querys with null values)

Credits to james@kenjim.com for the patch.
Slightly edited tests and fix for bug #62024
NEWS
Merge branch 'pull-request/309' into PHP-5.3
Merge branch 'PHP-5.3' into PHP-5.4
Merge branch 'PHP-5.4' into PHP-5.5
Merge branch 'PHP-5.5'