Modules
A bug-for-bug compatible Elixir port of PHP's
filter_var($email, FILTER_VALIDATE_EMAIL).
Mix Tasks
Fetches ext/filter/logical_filters.c from php-src for one or more refs,
re-extracts the two regex literals, and compares their SHA-256 against the
copies vendored in priv/php/. The comparison uses the full literal
(/pattern/flags), so a change to either the pattern or the inline flags
(/iD ↔ /iDu, etc.) is caught — both affect filter_var behaviour.
Downloads ext/filter/logical_filters.c from php-src for a given ref and
re-vendors the two regex strings into priv/php/, refreshing
priv/php/MANIFEST.json with new checksums.
Runs every input in test/fixtures/corpus.exs through the real
filter_var(..., FILTER_VALIDATE_EMAIL) of your local php binary and
writes a golden verdict file to test/fixtures/golden/php-<version>.tsv.