Fix for failing test in PHP >= 5.4