Bug #15050: preg_replace backslashes " or ' character

From: Date: Tue, 15 Jan 2002 15:07:49 +0000
Subject: Bug #15050: preg_replace backslashes " or ' character
Groups: php.dev 
Request: Send a blank email to php-dev+get-77136@lists.php.net to get a copy of this message
From: joyeux@1984.cz Operating system: MDK Linux PHP version: 4.1.0 PHP Bug Type: PCRE related Bug description: preg_replace backslashes " or ' character <? $text=' something and one " '; echo("$text\n"); $text=preg_replace("/(.*)/e","'\\1'",$text); echo($text); ?> output: something and one " something and one \" - in executable mode preg_replace adds a backslash. Why? I think it shouldn't do anything with. - it's the same when I use ' instead ", but switched. -- Edit bug report at: http://bugs.php.net/?id=15050&edit=1

« previous php.dev (#77136) next »