Bug #14050 Updated: problems with eregi and setlocale (apache module only)
| From: | sitnikov at infonet dot ee | Date: | Sat, 15 Dec 2001 10:41:43 +0000 |
| Subject: | Bug #14050 Updated: problems with eregi and setlocale (apache module only) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73894@lists.php.net to get a copy of this message | ||
ID: 14050
User updated by: sitnikov@infonet.ee
Reported By: sitnikov@infonet.ee
Old Status: Open
Status: Closed
Bug Type: Regexps related
Operating System: Linix
PHP Version: 4.0.5
New Comment:
Does not reproduce in php4.1.0.
Previous Comments:
------------------------------------------------------------------------
[2001-11-14 04:29:30] sitnikov@infonet.ee
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 this bug report at http://bugs.php.net/?id=14050&edit=1