From: SVN Migration Date: Tue, 9 Mar 2004 14:19:51 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.5RC4~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30c8d9b1665f79fd8229ffc65dd2b383125f97c0;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/strings/bug27457.phpt b/ext/standard/tests/strings/bug27457.phpt new file mode 100644 index 0000000000..6f5ec05f79 --- /dev/null +++ b/ext/standard/tests/strings/bug27457.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #27457 (Problem with strtr() and translation array) +--FILE-- + '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 [.]