mirror of
https://github.com/php/php-src.git
synced 2024-10-04 08:16:11 +00:00
8d8026aa92
- merge IDN
22 lines
407 B
PHP
Executable File
22 lines
407 B
PHP
Executable File
--TEST--
|
|
IDN
|
|
--INI--
|
|
unicode.runtime_encoding="utf-8"
|
|
--SKIPIF--
|
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
/*
|
|
* Test IDN functions (procedural only)
|
|
*/
|
|
|
|
echo idn_to_ascii(b"t\xC3\xA4st.de")."\n";
|
|
echo urlencode((binary)idn_to_unicode('xn--tst-qla.de'))."\n";
|
|
echo urlencode((binary)idn_to_utf8('xn--tst-qla.de'))."\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
xn--tst-qla.de
|
|
t%C3%A4st.de
|
|
t%C3%A4st.de
|