Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Use of undefined constant INTL_IDNA_VARIANT_UTS46 in 2.10 release #192

Closed
onshop opened this issue Aug 15, 2017 · 2 comments
Closed

Use of undefined constant INTL_IDNA_VARIANT_UTS46 in 2.10 release #192

onshop opened this issue Aug 15, 2017 · 2 comments

Comments

@onshop
Copy link

onshop commented Aug 15, 2017

Using PHP 5.6.24:

/vendor/zendframework/zend-validator/src/EmailAddress.php:557 Use of undefined constant INTL_IDNA_VARIANT_UTS46 - assumed 'INTL_IDNA_VARIANT_UTS46'

In PHP 5.6.28 the constant is defined.

@geerteltink
Copy link
Member

geerteltink commented Aug 15, 2017

According to https://3v4l.org/elX65, the constant is available in PHP 5.4.0. I'm guessing the intl extension uses the ICU system lib and your server has a really old version of the ICU lib. Support for UTS 46 Unicode IDNA Compatibility Processing was added in ICU 4.6 and released on 2010-12-02.

@onshop
Copy link
Author

onshop commented Aug 16, 2017

Thank you for your assistance @xtreamwayz. We were running a very old ICU lib version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants