From: [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]