Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108643 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68769 invoked from network); 17 Feb 2020 13:23:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Feb 2020 13:23:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 12F941801FD for ; Mon, 17 Feb 2020 03:39:20 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 17 Feb 2020 03:39:19 -0800 (PST) Received: by mail-io1-f42.google.com with SMTP id t26so4823415ioi.13 for ; Mon, 17 Feb 2020 03:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vnq99U0g5hmsTnI9OjLz6HoMmXE2mPwyfEC/bklar/c=; b=SnuCFcu1+4ACoEvVLZpyQQwPlfgwp0A6xp6hKxtHtHsGfQEz8CA6W0zkJOWwAAhpHm /5gHFjvDazBOhcIG8GAnAXzur2n436mwED3Su5QX93IMDhwSatQsx2ML4SDTXc8/xsul 6TcUVzDUVVu4zE+pOK+LTrWlOTpJ2fw3ALNMomnG8Aw5OHcqIA8Wvxuir40HevkzoCJI qsFuOz0RJV5+w6mgR7Xtzzat4X6w7u2Ed1lNFrJHGC+m3iMHbspuPa8ICLhP/lLnuHf0 5yb7WKyYkv3o/KaOajBddplq/ywrpXIsfoKEala+AVwAGYq44FGI1TR+hO6zc3IVvam7 YfCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vnq99U0g5hmsTnI9OjLz6HoMmXE2mPwyfEC/bklar/c=; b=n4NQYQ2Nh6ip3HrVJpnU9fU+V75bTx7hDweqDZTYcUmdzgBwEo/qsF5RIg4i3p99/E 8XAr74/oHqzCBuIFZWGLNynVYn4YSLS2xcQsxdqtsarFkkJIMVBy6vlJ8NiejzApJgsh D6JAR+hoYpN+nP4tdv0biE6JV9+zX+UtxST9UGw9Yd1GD3hRFkvkIvsWMr/HmqTJ4Xft N47jz7eQ3BEkrMosCYlmgLa6zSBOXjlXlcWvaapY0fzYD83Cj6cmnhPjiNjcA0WAvCSq XAzglF7asb+vnXS+EfpRhds0aP4jMmZhyfDyf+B0hfFv8o5foNsVZJJTsopcRJ0myBBg qvfA== X-Gm-Message-State: APjAAAUd6WWK5LK8BspLgd4mIIt6wvPn7135EnzsV1CPusbcqQFP1MQX HsS2RDmU3HprHxEAz/PoWuWECa8cRRuh/l+aMkE= X-Google-Smtp-Source: APXvYqzYf4BgMpUxv62iz4FHRvi7j4RMHgfPlVOr88XsnRAgVxHFQNYioW/NVmhQ5kZMaT+KtQAsIDPrglm9HYdzC7Q= X-Received: by 2002:a6b:c703:: with SMTP id x3mr11752972iof.118.1581939559025; Mon, 17 Feb 2020 03:39:19 -0800 (PST) MIME-Version: 1.0 References: <4a0f4d30-c8d3-0274-413f-0f4c582418d0@aegir.sexy> In-Reply-To: Date: Mon, 17 Feb 2020 12:38:43 +0100 Message-ID: To: Nikita Popov Cc: Guilliam Xavier , "G. P. B." , Aegir Leet , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="00000000000078d2b5059ec40127" Subject: Re: [PHP-DEV] Proposal for a new basic function: str_contains From: philipp.tanlak@gmail.com (Philipp Tanlak) --00000000000078d2b5059ec40127 Content-Type: text/plain; charset="UTF-8" Am Mo., 17. Feb. 2020 um 10:53 Uhr schrieb Nikita Popov < nikita.ppv@gmail.com>: > On Mon, Feb 17, 2020 at 10:03 AM Philipp Tanlak > wrote: > >> Now that we've talked about the pros and cons of case-insensitivity and >> multibyte variants, I'm still unsure what your opinions on those are. >> >> * Should we include a case-insensitive variant (str_icontains) ? >> * Should we include multibyte variants (mb_str_icontains) ? >> > > Especially considering how past proposals in this general area went, I'd > suggest to start small (just str_contains), and then go from there. > (Personally I'd like to have the trifecta of str_contains, str_starts_with > and str_ends_with in one go, but given that a proposal for the latter two > recently failed... though the main contention there seems to be the > case-insensitive part, not the functions themselves.) > > Slightly off-topic: >> Also, since this is my first time I'm trying to contribute: How can we >> proceed to write an RFC? >> I've read in the howto, that I need to earn RFC karma in order to create a >> new RFC page. How can I request that? >> My wiki.php.net username is: philippta and my email is >> philipp.tanlak@gmail.com > > > I've granted you RFC karma on the wiki, so you should be able to add a new > page under wiki.php.net/rfcs now. > > Regards, > Nikita > Thanks for the karma! An RFC has been created: https://wiki.php.net/rfc/str_contains Kind Regards, Philipp --00000000000078d2b5059ec40127--