fix PHP functional api test