php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1380 str_replace() doesn't replace occurence of needle at the end of the haystack
Submitted: 1999-05-06 06:09 UTC Modified: 1999-05-11 07:49 UTC
From: m dot krause at tu-harburg dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.7 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: m dot krause at tu-harburg dot de
New email:
PHP Version: OS:

 

 [1999-05-06 06:09 UTC] m dot krause at tu-harburg dot de
<?php
$string = "F.F.F.";
$string = str_replace("F.", "A", $string);
echo htmlspecialchars($string);
?>

displays "AAF." instead of "AAA"

http://www.tu-harburg.de/~semk2104/php-3.0.7-str_replace-patch

has a fix for this!

keep on the good work on PHP!
- michael

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-11 07:49 UTC] sas at cvs dot php dot net
Fixed in CVS. Thanks for the patch.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 01:00:02 2026 UTC