respect-validation/src
copilot-swe-agent[bot] eedce8fb32 Use Punycode filenames for non-ASCII TLD suffix data files
Some systems and tools (e.g., certain archive extractors, Windows
environments, or CI pipelines) do not properly handle non-ASCII
characters in file paths. The public suffix data files for
internationalized TLDs (such as ישראל, СРБ, 香港, and ไทย) were stored
using their native Unicode names, which caused installation failures
on those systems.

This commit converts those filenames to their Punycode equivalents
(e.g., XN--4DBRK0CE.php instead of ישראל.php) using `idn_to_ascii()`.
Both the data generation command (`UpdateDomainSuffixesCommand`) and the
runtime validator (`PublicDomainSuffix`) are updated to use the same
Punycode-based file lookup, ensuring consistency. A polyfill dependency
(`symfony/polyfill-intl-idn`) is added so that `idn_to_ascii()` is
available even when the `intl` PHP extension is not installed.

Assisted-by: Claude Code (Claude Opus 4.6)
Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2026-02-09 17:34:56 +01:00
..
Exceptions Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Helpers Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Message Update translation docs 2026-02-06 17:11:34 +00:00
Mixins Remove Masked validator in favor of Formatted 2026-02-06 20:44:26 +01:00
Transformers Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Validators Use Punycode filenames for non-ASCII TLD suffix data files 2026-02-09 17:34:56 +01:00
ContainerRegistry.php Update translation docs 2026-02-06 17:11:34 +00:00
Id.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Name.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NamespacedValidatorFactory.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
OnlyFailedChildrenResultFilter.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Path.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Result.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ResultFilter.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ResultQuery.php Add wildcard support to ResultQuery::findByPath() 2026-02-08 22:43:06 +01:00
Validator.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ValidatorBuilder.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
ValidatorFactory.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00