Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108641 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53980 invoked from network); 17 Feb 2020 11:37:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Feb 2020 11:37:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BBC5D180210 for ; Mon, 17 Feb 2020 01:53:08 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 01:53:08 -0800 (PST) Received: by mail-lj1-f172.google.com with SMTP id o15so18102076ljg.6 for ; Mon, 17 Feb 2020 01:53:07 -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=Y02OzxLAK60czqyNYcoo8O6rZnZvvdOqLgQqr4r6oW8=; b=NLQwPCbA6xHwVuy6FFuB/Yk7N03TEI7stfCb0np0LX+dfmT5QRcVQiSA2+kBBKQwLM fsYWwfIHy2fLj+tFx2Kqpgb9sy7URBth2Pcqb5K2HBJjzFH9Y4NMazXfbEtuNTW5PC11 Iw411jgqxenEzBjeGOcB/8RJBb8DMfTejjgDkxJaa8M8jTMbz1Hz27yLhgLapJEo5DK9 4y0v5ps8TxvJk5zLmMGdxO/OwEaDCVbIevtFlXFkDC3eIKBFxnuI+XR5A7O8xEvxQ0f6 IcckKm62Des4WaPBYcO3JmtDYzpgHi/cKqaU448zgEwcybZS2wPVhgEarKK2OayLw5iK 6CQg== 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=Y02OzxLAK60czqyNYcoo8O6rZnZvvdOqLgQqr4r6oW8=; b=hhzjmSLrw5jkgxc2IH92EkoaSbvOPGhGgii5P4V6v/vk6tsfdFpFwslFNqXJxwk8Kw bE+trPOZQhzRy5xwE384IBOH51sdQvP5D9fZiTiPLrxFL8IlTYhnAJGg3Jj9zdRYzURZ JdYwCuI3bhEAshnJ2HlR7YxV7xg5FYnKpzL6bP1yWlOWuyrOwA0/vfZZQusFW3kPkahG 84dhXv1PdPpYwCxpauwQBuWDlHtAWWkfQvhYTRhCK4ZF88bsVUmPnuiDOCiK9ZZw/LtF NNUykg512lR3IKcdnK+bOyL7cbnq1sUrLznSEy4BZA6VpWphFrhDnY3EO5VUUbf5w3Rc Y6jA== X-Gm-Message-State: APjAAAXar2v6kKl53Qcyd03ueh8ictP967xzgJxEaNFVXl0y3CD9I757 hi816pxwndIp5hQaRFUsm1+YyDHm0h8pmmhu67g= X-Google-Smtp-Source: APXvYqxrAuOMZnQe9HYIRLwiRVVZl9CBTQNYP3FFx+pl299g4TzTYBW3oqmtpITjFta8CZvCBrxwIW9Nn0kuuW9YA5k= X-Received: by 2002:a2e:2a84:: with SMTP id q126mr9101786ljq.258.1581933183506; Mon, 17 Feb 2020 01:53:03 -0800 (PST) MIME-Version: 1.0 References: <4a0f4d30-c8d3-0274-413f-0f4c582418d0@aegir.sexy> In-Reply-To: Date: Mon, 17 Feb 2020 10:52:47 +0100 Message-ID: To: Philipp Tanlak Cc: Guilliam Xavier , "G. P. B." , Aegir Leet , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000761c95059ec285e9" Subject: Re: [PHP-DEV] Proposal for a new basic function: str_contains From: nikita.ppv@gmail.com (Nikita Popov) --000000000000761c95059ec285e9 Content-Type: text/plain; charset="UTF-8" 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 --000000000000761c95059ec285e9--