|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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 May 07 03:01:30 2021 UTC