php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5426 Regexp functions are case sensitive when working with high ASCII characters
Submitted: 2000-07-07 11:00 UTC Modified: 2000-07-07 12:03 UTC
From: marten at jerbro dot se Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Latest CVS (06/07/2000) OS: Linux - Debian Slink
Private report: No CVE-ID: None
 [2000-07-07 11:00 UTC] marten at jerbro dot se
Snippet:
<?
if(eregi('?|?|?', '?')) echo 'MATCH'.chr(10);
if(preg_match('/?|?|?/i', '?')) echo 'MATCH'.chr(10);
echo eregi_replace('?|?|?', 'x', '???');
echo preg_replace('/?|?|?/i', 'y', '???');
?>

The output from the snippet should be:
MATCH
MATCH
xxxyyy

But the output is:
??????

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-07 12:03 UTC] marten at jerbro dot se
Didn?t set locale.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 18:01:35 2024 UTC