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

php 7.1.8 with zend-validator 2.10.0 : undefined constant INTL_IDNA_VARIANT_UTS46 #193

Closed
samsonasik opened this issue Aug 19, 2017 · 5 comments

Comments

@samsonasik
Copy link
Contributor

samsonasik commented Aug 19, 2017

in EmailAddress.php: 557

if (extension_loaded('intl')) {
return (idn_to_ascii($email, 0, INTL_IDNA_VARIANT_UTS46) ?: $email);
}

Need to check if constant available ?

@geerteltink
Copy link
Member

Duplicate of #192

@geerteltink
Copy link
Member

In addition to my explanation there: If more people experience this, I think a check might be needed. Although I'm concerned about the state of their server OS if they depend on system libraries from before 2012.

@samsonasik
Copy link
Contributor Author

@xtreamwayz I've created PR #194 for its check

@ghost
Copy link

ghost commented Aug 22, 2017

We use Amazon, and the latest version of ICU library, (in accordance with #192) But it does not work!

Version: 50.1.2
Release Date: 2012-12-17
API Changes since ICU4C 49
Readme
This is a maintenance release affecting only the Layout Engine ABI. It only incorporates bug #9826 which fixes a regression in ICU4C 50.1.1.
Users not using the Layout Engine may remain on ICU4C 50.1.1 (see below for 50.1.1 changes)

@samsonasik
Copy link
Contributor Author

@ArtemChornovol for workaround, downgrade set in composer "zendframework/zend-validator": "~2.9.2" is the way while waiting for #194 going to be merged or any other solution found for it.

weierophinney added a commit that referenced this issue Aug 22, 2017
Fixes #193 : use INTL_IDNA_VARIANT_UTS46 constant only when exists
weierophinney added a commit that referenced this issue Aug 22, 2017
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