WP-3354: Clean up php candidate validation.