php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: simonegrassi at yahoo dot com
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-31 06:38 UTC] sander@php.net
Unable to reproduce.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC