xref: /PHP-7.2/ext/intl/tests/idn.phpt (revision f1d7e3ca)
1--TEST--
2IDN
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7
8/*
9 * Test IDN functions (procedural only)
10 */
11
12echo idn_to_ascii("t\xC3\xA4st.de")."\n";
13echo urlencode(idn_to_utf8('xn--tst-qla.de'))."\n";
14
15?>
16--EXPECTF--
17Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in %s on line %d
18xn--tst-qla.de
19
20Deprecated: idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated in %s on line %d
21t%C3%A4st.de
22