Mantis - Quercus
Viewing Issue Advanced Details
534 minor always 12-21-05 08:46 12-30-05 15:18
bago  
 
normal  
closed  
snap 2005-12-20 fixed  
none    
none 3.0.18  
0000534: strtr implementation for array doesn't work
from http://www.php.net/strtr [^]

Example 2. strtr() example with two arguments
<?php
$trans = array("hello" => "hi", "hi" => "hello");
echo strtr("hi all, I said hello", $trans);
?>

This will show:

hello all, I said hi

Instead it doesn't replace anything because it try to replace single chars and not whole strings.

Notes
(0000561)
bago   
12-22-05 16:19   
This is fixed in 3.0.17
(0000610)
ferg   
12-30-05 15:18   
php/114a