doctrine/doctrine2 — pull request #1046 by peterjmit (2014-06-03 14:51:10+00:00)
Title: Fix the "Erroneous data format for unserializing" error message

Backport patch from PR #1045 to 2.3 branch.

@ocramius - I'm not sure if this is viable, but based on the comments from people it could be helpful to have this fixed in 5.3? I'm not 100% sure whether PHP or Doctrine is at fault here?