On 19.01.2018 at 19:11, Andrey Andreev wrote:
> It seems that an important detail was missed in the RFC to deprecate
> INTL_IDNA_VARIANT_2003 in PHP 7.2.0 (and later remove it). The only
> other option available - INTL_IDNA_VARIANT_UTS46 - may not be
> available at all, as PHP has ICU 4.0 as its minimum requirement, but
> support for UTS#46 was introduced by ICU 4.6 ...
> As a result, there may be systems where having a clean call to
> idn_to_ascii(), idn_to_utf() is impossible.
>
> I'm all for following deprecations by upstream, but I didn't find any
> mention of this scenario in the discussions. I'm assuming nobody has
> considered it and we're in a bit of a mess right now, so ...
Indeed, I had not considered this issue during the RFC process. Thanks
for bringing it up.
> My immediate thought is to simply bump the ICU version requirement,
> but I have no idea what kind of an impact that would have.
* ICU 4.0 has been released on 2008-07-02
* ICU 4.6 has been released on 2010-12-02
* ext/intl requires at least ICU 4.0 as of PHP 5.5.0 (released 2013-06-20)
Considering these release dates, it appears to be okay to require at
least ICU 4.6 as of PHP 7.2.2.
--
Christoph M. Becker