[PHP-DEV] Bug #876: ereg_replace() and eregi_replace() don't do anything From: peter.lerner <email protected>
Date: 10/26/98

From: peter.lerner <email protected>
Operating system: Linux 2.0.35
PHP version: 3.0 Latest CVS (26/10/1998)
PHP Bug Type: Misbehaving function
Bug description: ereg_replace() and eregi_replace() don't do anything

the following code snippet ...

 echo "string = \"" . $string . "\"<br>\n";
 eregi_replace("!", " ", $string);
 echo "string = \"" . $string . "\"<br>\n";

... yields this result:

string = "con ! air"
string = "con ! air"

did i miss something, or is this bad behaviour?
the "!" should have been replaced by <space>.

same with ereg_replace().

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>