Bug #12855: ereg_replace not working
| From: | simonegrassi at yahoo dot com | Date: | Mon, 20 Aug 2001 09:17:42 +0000 |
| Subject: | Bug #12855: ereg_replace not working | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63814@lists.php.net to get a copy of this message | ||
From: simonegrassi@yahoo.com
Operating system: Linux RedHat 7.1
PHP version: 4.0.6
PHP Bug Type: Strings related
Bug description: ereg_replace not working
$nm = ereg_replace( " ", " ", $nm );
I'am debugging a script where it doesn't work!
$nm has been passed with in-line parameters (read-only ???),
but it does not work also in the following way:
// $nm is "test with blank.pdf"
$newVar = $nm;
$tryIt = ereg_replace( " ", " ", $newVar );
// $tryIt is always "test with blank.pdf"
in another script it works (???) with the same simple substitution,
many thanks,
Simone Grassi.
--
Edit bug report at: http://bugs.php.net/?id=12855&edit=1