Bug #87953

SiteMatcher Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46

Added by Markus Pircher about 1 month ago. Updated about 1 month ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Start date:
2019-03-19
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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.

Bildschirmfoto 2019-03-20 um 08.59.59.png View (26.5 KB) Markus Pircher, 2019-03-20 09:00

History

#1 Updated by Benni Mack about 1 month ago

Hey Markus,

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?

#2 Updated by Benni Mack about 1 month ago

  • Status changed from New to Needs Feedback

#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.

#4 Updated by Benni Mack about 1 month ago

ha, my best guess is that the compiled intl version does not (yet) support the new variant - very strange.

Can you give me details on the installed intl version (from phpinfo())?

Also available in: Atom PDF