Bug #12761 Updated: ereg and preg problems

From: Date: Wed, 15 Aug 2001 11:05:36 +0000
Subject: Bug #12761 Updated: ereg and preg problems
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-63264@lists.php.net to get a copy of this message
ID: 12761 Updated by: derick Reported By: zeen@zeen.co.uk Old Status: Open Status: Bogus Bug Type: Output Control Operating System: win me/freebsd PHP Version: 4.0.6 New Comment: This is no bug (As discussed on #Php). Derick Previous Comments: ------------------------------------------------------------------------ [2001-08-15 06:50:47] zeen@zeen.co.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? ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12761&edit=1

« previous php.dev (#63264) next »