From: [EMAIL PROTECTED] Operating system: windows PHP version: 4.1.1 PHP Bug Type: Unknown/Other Function Bug description: different implementation of str_replace on windows and linux
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 bug report at http://bugs.php.net/?id=16352&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16352&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16352&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16352&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16352&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16352&r=support Expected behavior: http://bugs.php.net/fix.php?id=16352&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16352&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16352&r=submittedtwice