Bug #14050: problems with eregi and setlocale (apache module only)

From: Date: Wed, 14 Nov 2001 09:29:30 +0000
Subject: Bug #14050: problems with eregi and setlocale (apache module only)
Groups: php.dev 
Request: Send a blank email to php-dev+get-70414@lists.php.net to get a copy of this message
From: sitnikov@infonet.ee 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

« previous php.dev (#70414) next »