Req #60975 [Opn->Sus]: case insensitive implementation of strpbrk
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)