Annotation of embedaddon/php/ext/standard/tests/strings/bug27457.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #27457 (Problem with strtr() and translation array)
        !             3: --FILE--
        !             4: <?php
        !             5:        $test = "Dot in brackets [.]\n";
        !             6:        echo $test;
        !             7:        $test = strtr($test, array('.' => '0'));
        !             8:        echo $test;
        !             9:        $test = strtr($test, array('0' => '.'));
        !            10:        echo $test;
        !            11:        $test = strtr($test, '.', '0');
        !            12:        echo $test;
        !            13:        $test = strtr($test, '0', '.');
        !            14:        echo $test;
        !            15: ?>
        !            16: --EXPECT--
        !            17: Dot in brackets [.]
        !            18: Dot in brackets [0]
        !            19: Dot in brackets [.]
        !            20: Dot in brackets [0]
        !            21: Dot in brackets [.]

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>