bug fix PHP5 failed test