From:             [EMAIL PROTECTED]
Operating system: Linix
PHP version:      4.0.5
PHP Bug Type:     Regexps related
Bug description:  problems with eregi  and setlocale (apache module only)

This script work OK with cgi version php and randomly fail with apache
module (preg_match It is used for comparison and it works always
correctly):

<?
 $LOCALE = 'ru_RU.KOI8-R';

 setlocale('LC_ALL' ,$LOCALE);

 $str = "ÐòÉ÷ÅÔ";

 echo $str."<br>\n";

 if (eregi("ðÒÉ×åÔ",$str))
        echo "eregi: OK<br>\n";

 if (preg_match("/ðÒÉ×åÔ/i",$str))
        echo "preg_match: OK<br>\n";
?>

-- 
Edit bug report at: http://bugs.php.net/?id=14050&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to