SiteMatcher Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46
With bugfix https://review.typo3.org/c/Packages/TYPO3.CMS/+/60232 SiteMatcher using idn_to_ascii().
On our system Typo3 9.5-dev not work with installed intl.
Our Server run with CPanel on CentOS 6, and only an old version of Intl is installed, and the constant INTL_IDNA_VARIANT_UTS46 not exist.
#1 Updated by Benni Mack about 1 month ago
thanks for the report. We've provided the symfony/polyfill-intl-idn package with it. Is it possible that you set up the project via composer and forgot to trigger a "composer update" after fetching it via composer? Can you check if a folder "vendor/symfony/polyfill-intl-idn" exists in your installation?
#3 Updated by Markus Pircher about 1 month ago
The polyfill is installed, but is not active because the native intl version exists.
With a blank PHP this work:
idn_to_ascii('localhost', IDNA_DEFAULT, INTL_IDNA_VARIANT_2003);
but it's give me an message:
"PHP Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated"
If i define the INTL_IDNA_VARIANT_UTS46 manually, with 1, idn_to_ascii() returns false.
Is probably an edge case with old OS and new PHP version.