sniper          Tue Mar  9 09:20:14 2004 EDT

  Added files:                 (Branch: PHP_4_3)
    /php-src/ext/standard/tests/strings bug27457.phpt 
  Log:
  test for bug #27457
  

http://cvs.php.net/co.php/php-src/ext/standard/tests/strings/bug27457.phpt?r=1.1&p=1
Index: php-src/ext/standard/tests/strings/bug27457.phpt
+++ php-src/ext/standard/tests/strings/bug27457.phpt
--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 [.]

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to