1.2.1641. idn_to_ascii() New Default

The default parameter value of idn_to_ascii() and idn_to_utf8() is now INTL_IDNA_VARIANT_UTS46 instead of the deprecated INTL_IDNA_VARIANT_2003.

<?php

echo idn_to_ascii('täst.de');

?>

See also idn_to_ascii, idn_to_utf8 and Unicode IDNA Compatibility Processing.

1.2.1641.1. Connex PHP features

1.2.1641.1.1. Suggestions

  • Explicitly add the second parameter to the idn_to_ascii() and idn_to_utf8() functions.

1.2.1641.1.2. Specs

Short name

Php/IdnUts46

Rulesets

All, CE, CompatibilityPHP74

Exakat since

2.2.3

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Available in

Entreprise Edition, Community Edition, Exakat Cloud