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