Bug #15050 Updated: preg_replace backslashes " or ' character
| From: | sander@php.net | Date: | Tue, 15 Jan 2002 15:59:38 +0000 |
| Subject: | Bug #15050 Updated: preg_replace backslashes " or ' character | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77138@lists.php.net to get a copy of this message | ||
ID: 15050
Updated by: sander
Old Summary: preg_replace backslashes " or ' character
Reported By: joyeux@1984.cz
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] joyeux@1984.cz
<?
$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