Req #60975 [Opn->Sus]: case insensitive implementation of strpbrk

From: Date: Tue, 16 Mar 2021 12:06:11 +0000
Subject: Req #60975 [Opn->Sus]: case insensitive implementation of strpbrk
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232774@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60975&edit=1

 ID:                 60975
 Updated by:         cmb@php.net
 Reported by:        jonathan at scriptwriterthingy dot com
 Summary:            case insensitive implementation of strpbrk
-Status:             Open
+Status:             Suspended
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   Linux/CentOS
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[2012-02-04 10:41:04] bobwei9 at hotmail dot com

Simply use this workaround:


function stripbrk ($haystack, $charlist)
{
 return strpbrk($haystack, strtolower($charlist).strtoupper($charlist));
}

------------------------------------------------------------------------
[2012-02-03 20:57:38] jonathan at scriptwriterthingy dot com

Description:
------------
strpbrk() is case sensitive. It would be great to see a case insensitive 
implementation - stripbrk()



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=60975&edit=1


Thread (3 messages)

« previous php.bugs (#232774) next »