mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
01912f93c3
According to the “Deprecate and remove INTL_IDNA_VARIANT_2003” RFC[1], we change the default of the $variant parameter of `idn_to_ascii()` and `idn_to_utf8()` from `INTL_IDNA_VARIANT_2003` to `INTL_IDNA_VARIANT_UTS46`. [1] <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003>
19 lines
283 B
PHP
19 lines
283 B
PHP
--TEST--
|
|
IDN
|
|
--SKIPIF--
|
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
/*
|
|
* Test IDN functions (procedural only)
|
|
*/
|
|
|
|
echo idn_to_ascii("t\xC3\xA4st.de")."\n";
|
|
echo urlencode(idn_to_utf8('xn--tst-qla.de'))."\n";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
xn--tst-qla.de
|
|
t%C3%A4st.de
|