mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
87fac43ac0
- html_translation_table and setlocale tests are no longer relevant - there are a number of ANSI-encoded files. Is this deliberate?
13 lines
361 B
PHP
Executable File
13 lines
361 B
PHP
Executable File
--TEST--
|
||
strtr() function (windown-1251 encoding)
|
||
--INI--
|
||
unicode.script_encoding=windows-1251
|
||
unicode.output_encoding=windows-1251
|
||
--FILE--
|
||
<?php
|
||
$trans = array("¤à®¢ "=>"âà ¢ ", "âà ¢ "=>"¤à®¢ ", " "=>"€", "¯®¤ ¨¬¨"=>" âà ¢¥");
|
||
var_dump(strtr("# <20> ¤¢®à¥ ¤à®¢ , ¯®¤ ¨¬¨ âà ¢ . #", $trans));
|
||
?>
|
||
--EXPECT--
|
||
unicode(35) "# <20>€ ¤¢®à¥ âà ¢ , âà ¢¥ ¤à®¢ . #"
|