Fix problem on PHP < 5.5 (#831)