ID: 15050 Comment by: jhelzer at cse dot unl dot edu Reported By: joyeux at 1984 dot cz Status: Bogus Bug Type: PCRE related Operating System: MDK Linux PHP Version: 4.1.0 New Comment:
This is hardy bogus. GPC isn't even involved, just look at the code sample. This bug is ludicrous. Previous Comments: ------------------------------------------------------------------------ [2004-08-02 21:22:50] abodeman at yahoo dot com This is NOT a bogus bug. Sander, it is NOT due to that awful PHP kludge called Magic Quotes. Magic Quotes puts backslashes into data received through $_GET, $_POST, or $_COOKIE. None of those are being used here. Due to this bug, I am going to have to write my own character-by-character string replacer, or fire up Perl in the background with backticks. I hate PHP. ------------------------------------------------------------------------ [2004-03-31 11:32:36] php at derailer dot org This still occurs for me, but only with double quotes. I turned off every magic_quotes_* directive in php.ini just to be sure, and it still happens, just as described here. Single quotes, and literal backslashes *are not affected* for me at all. PHP 4.3.5, BTW. ------------------------------------------------------------------------ [2002-01-15 10:59:38] [EMAIL PROTECTED] Not a bug. RTM on Magic Quotes. ------------------------------------------------------------------------ [2002-01-15 10:07:48] joyeux at 1984 dot 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