php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42854 Warning message generated by strtr() contains an extra dot(".") char
Submitted: 2007-10-04 11:45 UTC Modified: 2007-10-04 23:05 UTC
From: mahesh dot vemula at in dot ibm dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 5CVS-2007-10-04 (snap) OS: RHEL 4, Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mahesh dot vemula at in dot ibm dot com
New email:
PHP Version: OS:

 

 [2007-10-04 11:45 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-04 23:05 UTC] iliaa@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 09:01:28 2025 UTC