php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1294 sql_regcase works too hard ?
Submitted: 1999-04-05 16:28 UTC Modified: 1999-04-05 17:52 UTC
From: wdm at Allone dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.7 OS: unix
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: wdm at Allone dot com
New email:
PHP Version: OS:

 

 [1999-04-05 16:28 UTC] wdm at Allone dot com
sql_regcase seems to try to regcase non alpha characters:


$a="a|b";
$b=sql_regcase($a);
echo "'$b'";

/* produces '[Aa][||][Bb]' */
/* msql_RegCase($a) used to return '[Aa]||[Bb]' */

Thanks much!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-05 17:52 UTC] sas
I've changed the behaviour so that only alphabetic characters (in your locale) are converted into a bracket expression. 
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 18:00:01 2026 UTC