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
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: jonathan at scriptwriterthingy dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 23 16:01:23 2021 UTC