php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12761 ereg and preg problems
Submitted: 2001-08-15 06:50 UTC Modified: 2001-08-15 07:05 UTC
From: zeen at zeen dot co dot uk Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.0.6 OS: win me/freebsd
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zeen at zeen dot co dot uk
New email:
PHP Version: OS:

 

 [2001-08-15 06:50 UTC] zeen at zeen dot co dot uk
$data = eregi_replace("(.*)", prodwebsearch('\\1'), "$data");

function prodwebsearch($search) { 
# here search is fine
# search = ultra 5
return prodsearch($search); 
}

function prodsearch($search) { 
#here its not
# search = \1
return $search;
}

(this is just an example)

why does $search change to \1?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-15 07:05 UTC] derick@php.net
This is no bug (As discussed on #Php).

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC