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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 23 08:01:30 2024 UTC