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
 [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 09:00:02 2026 UTC