ID: 15050 Updated by: sander Old Summary: preg_replace backslashes " or ' character Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: PCRE related Operating System: MDK Linux PHP Version: 4.1.0 New Comment:
Not a bug. RTM on Magic Quotes. Previous Comments: ------------------------------------------------------------------------ [2002-01-15 10:07:48] [EMAIL PROTECTED] <? $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 this bug report at http://bugs.php.net/?id=15050&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]