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
 [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-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 05:01:23 2019 UTC