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
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: 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

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 Jun 17 17:01:29 2024 UTC