mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
e283f7a7fe
- Changes request #52986 to "to be documented".
22 lines
402 B
PHP
22 lines
402 B
PHP
--TEST--
|
|
Transliterator clone handler
|
|
--SKIPIF--
|
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
$str = "a U+4E07";
|
|
|
|
$t = Transliterator::create("hex-any");
|
|
echo $t->id, ": ", $t->transliterate($str), "\n";
|
|
|
|
$u = clone $t;
|
|
echo $u->id, ": ", $u->transliterate($str), "\n";
|
|
|
|
echo "Done.\n";
|
|
|
|
--EXPECT--
|
|
hex-any: a 万
|
|
hex-any: a 万
|
|
Done.
|