Fix test failure on php-5.4