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

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: Mon Dec 30 14:01:28 2024 UTC