mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
22 lines
402 B
Plaintext
22 lines
402 B
Plaintext
|
--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.
|