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

Reply via email to