PHP 4.0 Bug #5426: Regexp functions are case sensitive when working with high ASCII characters

From: Date: Fri, 07 Jul 2000 09:00:12 +0000
Subject: PHP 4.0 Bug #5426: Regexp functions are case sensitive when working with high ASCII characters
Groups: php.dev 
Request: Send a blank email to php-dev+get-23682@lists.php.net to get a copy of this message
From: marten@jerbro.se Operating system: Linux - Debian Slink PHP version: 4.0 Latest CVS (06/07/2000) PHP Bug Type: Misbehaving function Bug description: Regexp functions are case sensitive when working with high ASCII characters Snippet: <? if(eregi('å|ä|ö', 'Å')) echo 'MATCH'.chr(10); if(preg_match('/å|ä|ö/i', 'Å')) echo 'MATCH'.chr(10); echo eregi_replace('å|ä|ö', 'x', 'ÅÄÖ'); echo preg_replace('/å|ä|ö/i', 'y', 'ÅÄÖ'); ?> The output from the snippet should be: MATCH MATCH xxxyyy But the output is: ÅÄÖÅÄÖ

« previous php.dev (#23682) next »