|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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";


Add a Patch

Pull Requests

Add a Pull Request


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-2023 The PHP Group
All rights reserved.
Last updated: Mon May 29 03:03:42 2023 UTC