From: mahesh dot vemula at in dot ibm dot com Operating system: RHEL 4, Windows XP PHP version: 5CVS-2007-10-04 (snap) PHP Bug Type: Strings related Bug description: Warning message generated by strtr() contains an extra dot(".") char
Description: ------------ Warning message generated by strtr() contains an extra dot(".") char, when the second ('replace_pairs') argument is not an array. It happens only with php5. Reproduce code: --------------- <?php var_dump( strtr("hello", "string") ); ?> Expected result: ---------------- PHP Warning: strtr(): The second argument is not an array in %s on line %d bool(false) Actual result: -------------- PHP Warning: strtr(): The second argument is not an array. in %s on line %d bool(false) -- Edit bug report at http://bugs.php.net/?id=42854&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42854&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42854&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42854&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42854&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42854&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42854&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42854&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42854&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42854&r=support Expected behavior: http://bugs.php.net/fix.php?id=42854&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42854&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42854&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42854&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42854&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42854&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42854&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42854&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42854&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42854&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42854&r=mysqlcfg