From:             [EMAIL PROTECTED]
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


-- 
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]

Reply via email to