Issue #2287139 by alexpott: Fixed Various serialization test failures after updating to php 5.4.29.