ID: 16352 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Unknown/Other Function Operating System: windows PHP Version: 4.1.1 New Comment:
You're right. It was my fault. The magic quotes settings were different. I'm sorry having reported it as bug and thus stealing your time. Previous Comments: ------------------------------------------------------------------------ [2002-04-09 14:18:37] [EMAIL PROTECTED] You're probably messing with different Magic Quotes settings. This is really not a bug, you're doing something wrong. ------------------------------------------------------------------------ [2002-04-09 14:08:04] [EMAIL PROTECTED] I know, what the escape characters mean. The problem was, that I wanted to replace all quotations in a string which worked on linux with \" but on windows I had to write \\\" to achieve the replacement! ------------------------------------------------------------------------ [2002-04-09 12:01:22] [EMAIL PROTECTED] ??? On linux $getQuery = str_replace("\"", "", $getQuery); On windows $getQuery = str_replace("\"", "", $getQuery); \\ means \ \" means " so \\\" means \". ------------------------------------------------------------------------ [2002-03-29 15:29:24] [EMAIL PROTECTED] str_replace() produces different output on windows and on linux: php versions: windows: 4.1.1 linux: 4.0.5 situation: I wanted to delete all quotations in a string, that came from GET query. script: on linux: $getQuery = str_replace("\"", "", $getQuery); on windows: $getQuery = str_replace("\\\"", "", $getQuery); conclusion: On windows, the character [\"] is not seen as one character but as two. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16352&edit=1