TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
473 B
21 lines
473 B
--TEST--
|
|
Bug #27457 (Problem with strtr() and translation array)
|
|
--FILE--
|
|
<?php
|
|
$test = "Dot in brackets [.]\n";
|
|
echo $test;
|
|
$test = strtr($test, array('.' => '0'));
|
|
echo $test;
|
|
$test = strtr($test, array('0' => '.'));
|
|
echo $test;
|
|
$test = strtr($test, '.', '0');
|
|
echo $test;
|
|
$test = strtr($test, '0', '.');
|
|
echo $test;
|
|
?>
|
|
--EXPECT--
|
|
Dot in brackets [.]
|
|
Dot in brackets [0]
|
|
Dot in brackets [.]
|
|
Dot in brackets [0]
|
|
Dot in brackets [.]
|
|
|