|  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.
Block user comment
Status: Assign to:
Bug Type:
From: jonathan at scriptwriterthingy dot com
New email:
PHP Version: OS:


 [2012-02-03 20:57 UTC] jonathan at scriptwriterthingy dot com
strpbrk() is case sensitive. It would be great to see a case insensitive 
implementation - stripbrk()


Add a Patch

Pull Requests

Add a Pull Request


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]
-Status: Open +Status: Suspended
 [2021-03-16 12:06 UTC]
This is unlikely to happen, unless somebody pursues the RFC
process[1] successfully.  For the time being, I suspend this

[1] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 23 16:01:23 2021 UTC