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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 08:01:30 2024 UTC