Problem/Motivation
As of #2278353: Update to Symfony 2.5, the core email validation class will be using egulias/EmailValidator #2313669: Bring in egulias/EmailValidator for RFC compliant email address validation. valid_email_address() should use it too. Deprecate valid_email_address().
Proposed resolution
Modify valid_email_address() to use the egulias/EmailValidator. Mark valid_email_address() as deprecated to be removed in 8.x (or 9.x?).
Remaining tasks
Provide fall back to existing functionality for php 5.2
User interface changes
API changes
Creates the email.validator service and \Drupal::emailIsValid().
Beta phase evaluation
Issue category | Task because this is stability-enhancing code. |
---|---|
Issue priority | Major because it increases stability of Drupal. |
Disruption | Not disruptive for core/contributed and custom modules/themes because it maintains the commonly-used valid_email_address(). It will just work consistently now. |