#26330 [NEW]: inconsistent behaviour of \b for win&*nix?

From: Date: Thu, 20 Nov 2003 13:19:19 +0000
Subject: #26330 [NEW]: inconsistent behaviour of \b for win&*nix?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50746@lists.php.net to get a copy of this message
From: space at outthere dot net Operating system: win/linux PHP version: 4.3.4 PHP Bug Type: PCRE related Bug description: inconsistent behaviour of \b for win&*nix? Description: ------------ running a regexp in windows and later on linux yeilded different results: $new = preg_replace("/\bÖsterreich\b/i", "A", "Germany Österreich France"); will replace on windows systems but will fail on unix boxes. Reproduce code: --------------- $new = preg_replace("/\bÖsterreich\b/i", "A", "Germany Österreich France"); print $new; Expected result: ---------------- Germany A France Actual result: -------------- win: > Germany A France linux: > Germany Österreich France -- Edit bug report at http://bugs.php.net/?id=26330&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26330&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26330&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26330&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26330&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26330&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26330&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26330&r=support Expected behavior: http://bugs.php.net/fix.php?id=26330&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26330&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26330&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26330&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26330&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26330&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26330&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26330&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26330&r=float

« previous php.bugs (#50746) next »