I recently upgraded my Ubuntu 10.04 dev server to 14.04. It is actually a fresh install. PHP version was 5.4.15, and is now PHP 5.5.9. MySQL went from 5.1.67 to 5.5.37.
This is a bug in php. Please see https://bugs.php.net/bug.php?id=68226 for explanation and workaround.