Bug #10019 Updated: string str_replace(string needle, string str, string haystack);
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 12:21:18 +0000 |
| Subject: | Bug #10019 Updated: string str_replace(string needle, string str, string haystack); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10583@lists.php.net to get a copy of this message | ||
ID: 10019
Updated by: sander@php.net
Reported By: kvdwalt@csir.co.za
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: NT
PHP Version: 3.0.16
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-03-27 08:59:39] kvdwalt@csir.co.za
string str_replace(string needle, string str, string haystack);
fails if haystack ends in needle
// str_replace fail if string ends on #..# so ad <space>
$QueryText = "Select count(*) from #TABLENAME# ";
$QueryText = str_replace("#TABLENAME#", "extracts", $QueryText);
echo "The Query was :".$QueryText."<br>";
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10019&edit=1