php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14050 problems with eregi and setlocale (apache module only)
Submitted: 2001-11-14 04:29 UTC Modified: 2001-12-15 05:41 UTC
From: sitnikov at infonet dot ee Assigned:
Status: Closed Package: Regexps related
PHP Version: 4.0.5 OS: Linix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sitnikov at infonet dot ee
New email:
PHP Version: OS:

 

 [2001-11-14 04:29 UTC] sitnikov at infonet dot 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";
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-15 05:41 UTC] sitnikov at infonet dot ee
Does not reproduce in php4.1.0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 20:01:29 2024 UTC