--TEST-- Test strtr() function : usage variations - unexpected inputs for 'to' argument(Bug #42861) --FILE-- --EXPECTF-- *** Testing strtr() function: with unexpected inputs for 'to' *** -- Iteration 1 -- unicode(6) "0120tm" -- Iteration 2 -- unicode(6) "0121tm" -- Iteration 3 -- unicode(6) "012-2m" -- Iteration 4 -- unicode(6) "51210." -- Iteration 5 -- unicode(6) ".52-20" -- Iteration 6 -- unicode(6) "000105" -- Iteration 7 -- Warning: strtr() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 8 -- Warning: strtr() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 9 -- Warning: strtr() expects parameter 3 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 10 -- unicode(6) "0121tm" -- Iteration 11 -- unicode(6) "012atm" -- Iteration 12 -- unicode(6) "0121tm" -- Iteration 13 -- unicode(6) "012atm" -- Iteration 14 -- unicode(6) "012atm" -- Iteration 15 -- unicode(6) "012atm" -- Iteration 16 -- unicode(6) "plesam" -- Iteration 17 -- Warning: strtr() expects parameter 3 to be string (Unicode or binary), resource given in %s on line %d NULL -- Iteration 18 -- unicode(6) "012atm" -- Iteration 19 -- unicode(6) "012atm" *** Done ***