fix a unit test fail for php 5.3