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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marten at jerbro dot se
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-07 12:03 UTC] marten at jerbro dot se
Didn?t set locale.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 10:01:33 2025 UTC