|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12855 ereg_replace not working
Submitted: 2001-08-20 05:17 UTC Modified: 2001-08-31 06:38 UTC
From: simonegrassi at yahoo dot com Assigned:
Status: Closed Package: Regexps related
PHP Version: 4.0.6 OS: Linux RedHat 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
33 + 41 = ?
Subscribe to this entry?

 [2001-08-20 05:17 UTC] simonegrassi at yahoo dot com
$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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-31 06:38 UTC]
Unable to reproduce.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 11:01:29 2024 UTC