Bug #876: ereg_replace() and eregi_replace() don't do anything
| From: | peter dot lerner at bayreuth dot baynet dot de | Date: | Mon, 26 Oct 1998 17:12:33 +0000 |
| Subject: | Bug #876: ereg_replace() and eregi_replace() don't do anything | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2030@lists.php.net to get a copy of this message | ||
From: peter.lerner@bayreuth.baynet.de
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@lists.php.net
For help: php-dev-help@lists.php.net