Bug #1380: str_replace() doesn't replace occurence of needle at the end of the haystack
| From: | m dot krause at tu-harburg dot de | Date: | Thu, 06 May 1999 10:09:25 +0000 |
| Subject: | Bug #1380: str_replace() doesn't replace occurence of needle at the end of the haystack | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5380@lists.php.net to get a copy of this message | ||
From: m.krause@tu-harburg.de
Operating system: Linux
PHP version: 3.0.7
PHP Bug Type: Misbehaving function
Bug description: str_replace() doesn't replace occurence of needle at the end of the haystack
<?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
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net