mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
33 lines
624 B
PHP
33 lines
624 B
PHP
--TEST--
|
|
Transliterator::createInverse (basic)
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
|
|
$tr = Transliterator::create("Katakana-Latin");
|
|
$orstr = "オーシャンビュー";
|
|
$new_str = $tr->transliterate($orstr);
|
|
|
|
$revtr = $tr->createInverse();
|
|
$recovstr = $revtr->transliterate($new_str);
|
|
|
|
$revtr2 = transliterator_create_inverse($tr);
|
|
$recovstr2 = $revtr2->transliterate($new_str);
|
|
|
|
echo $orstr,"\n";
|
|
echo $new_str,"\n";
|
|
echo $recovstr,"\n";
|
|
|
|
var_dump($orstr === $recovstr);
|
|
var_dump($orstr === $recovstr2);
|
|
|
|
echo "Done.\n";
|
|
?>
|
|
--EXPECT--
|
|
オーシャンビュー
|
|
ōshanbyū
|
|
オーシャンビュー
|
|
bool(true)
|
|
bool(true)
|
|
Done.
|