php 5.6: add workaround for unserialize/mock issue from 5.4/5.5