#42854 [Opn->Csd]: Warning message generated by strtr() contains an extra dot(".") char

From: Date: Thu, 04 Oct 2007 23:05:30 +0000
Subject: #42854 [Opn->Csd]: Warning message generated by strtr() contains an extra dot(".") char
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118191@lists.php.net to get a copy of this message
ID: 42854 Updated by: iliaa@php.net Reported By: mahesh dot vemula at in dot ibm dot com -Status: Open +Status: Closed Bug Type: Strings related Operating System: RHEL 4, Windows XP PHP Version: 5CVS-2007-10-04 (snap) New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-10-04 11:45:15] mahesh dot vemula at in dot ibm dot com 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 this bug report at http://bugs.php.net/?id=42854&edit=1

« previous php.bugs (#118191) next »