summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug27457.phpt
blob: 6f5ec05f79a2abbcbddb0646770ade90d8395ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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 [.]