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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 + 16 = ?
Subscribe to this entry?

 
 [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 27 21:01:33 2024 UTC