#26330 [Opn->Bgs]: inconsistent behaviour of \b for win&*nix?
| From: | iliaa@php.net | Date: | Fri, 21 Nov 2003 00:26:38 +0000 |
| Subject: | #26330 [Opn->Bgs]: inconsistent behaviour of \b for win&*nix? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-50772@lists.php.net to get a copy of this message | ||
ID: 26330
Updated by: iliaa@php.net
Reported By: space at outthere dot net
-Status: Open
+Status: Bogus
Bug Type: PCRE related
Operating System: win/linux
PHP Version: 4.3.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
\b is locale dependant and I suspect the locales on your Win32 and
Linux servers differ, hence the different behaviour.
Previous Comments:
------------------------------------------------------------------------
[2003-11-20 08:19:19] space at outthere dot net
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 this bug report at http://bugs.php.net/?id=26330&edit=1