fix spec fails on php 5.3