php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60975 case insensitive implementation of strpbrk
Submitted: 2012-02-03 20:57 UTC Modified: 2021-03-16 12:06 UTC
From: jonathan at scriptwriterthingy dot com Assigned:
Status: Suspended Package: *General Issues
PHP Version: Irrelevant OS: Linux/CentOS
Private report: No CVE-ID: None
 [2012-02-03 20:57 UTC] jonathan at scriptwriterthingy dot com
Description:
------------
strpbrk() is case sensitive. It would be great to see a case insensitive 
implementation - stripbrk()


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-04 10:41 UTC] bobwei9 at hotmail dot com
Simply use this workaround:


function stripbrk ($haystack, $charlist)
{
 return strpbrk($haystack, strtolower($charlist).strtoupper($charlist));
}
 [2021-03-16 12:06 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-03-16 12:06 UTC] cmb@php.net
This is unlikely to happen, unless somebody pursues the RFC
process[1] successfully.  For the time being, I suspend this
ticket.

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC