Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108739 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53159 invoked from network); 24 Feb 2020 18:35:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Feb 2020 18:35:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 29F9C180504 for ; Mon, 24 Feb 2020 08:52:23 -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-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (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, 24 Feb 2020 08:52:22 -0800 (PST) Received: by mail-il1-f174.google.com with SMTP id t17so8260984ilm.13 for ; Mon, 24 Feb 2020 08:52:22 -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=m8p8L5NAng0/XfOMCGunW+0YJlBBgYOLKGNjAicf6H8=; b=d/x2Z7Ju79XO2/0iaFWpQOmTNbZG4ir7Yc3MFrpxETVHREdLmetgfBTP6AzW+mVpiE yZdXlAZo0omghMbRo/MjJ52MHUTxDOJ0NafLjRFlVLNECsDisEcT/4ZVkBzVq2NFqRBL 4/K/CzLX8vn8P5LL9p4/prUWu331a+XOESLUXu/oZaU0iABqnN/p5B+rkfPHWGxUHx5M dSan8quWNgTGMgDB8FTvNQX1/wNCGl9kL4RczLA647B6OgY3es/idTgW0W5hJxYYjSfF wG6DIgC5TkmK+QTceMkUL0BOuPQovup4oSCespjrgihcdrdUpEMdib5jE8dVc39d27sm NZpg== 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=m8p8L5NAng0/XfOMCGunW+0YJlBBgYOLKGNjAicf6H8=; b=DtPIh59OWB/ofTdoKxs1tFOBs7ti0bb9uXVEdrtfRHj6OCJXyBsHbShrltMcqUv3cD 7ALG7/oTVLB+eaqFDBmG56PunvMJw7cHifJdt9cAHuwj+ihsg4nLzWkVAyz80mf1W4ub /v4N+V32MfQL2zgdnP3eYf2fgGIc6/LgV/eY5weAvHvSGHrIDetPLWI2L5MCHKUg8iGw kq+rZBFIwY3hV2QBQxZJaefyn1xjnhO+yKu/tAzE62JjGQuegL1i5Moc/rrW6EV/9CO4 OWi9mEvE9X7JRgxWOBmfiElLtfx2sMOvZPYGIA4HXCzNpIR7M0iJfdd/JqNZ+4hNP+5s XDQQ== X-Gm-Message-State: APjAAAXKTawFIwVN2Vd9eNtO0L9ObWaSSB5ApAFlXf7K9OVQHDL4ry0R HJgjKjmecdw+W7+RlVOpF66XT9Xc1PXClohiJX8= X-Google-Smtp-Source: APXvYqw7JhReiaT0rLeozXhgNBdLCNY2tPWUEwVQ95+pIjARD3yEEShdZ43i4FLFRgPmggsPKvLvdgq4/1Q7Mg+52q8= X-Received: by 2002:a92:d5c3:: with SMTP id d3mr58684073ilq.250.1582563139897; Mon, 24 Feb 2020 08:52:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 24 Feb 2020 17:52:09 +0100 Message-ID: To: Ben Ramsey Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000c9d7cf059f5531c6" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] str_contains From: philipp.tanlak@gmail.com (Philipp Tanlak) --000000000000c9d7cf059f5531c6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ben Ramsey schrieb am Mo. 24. Feb. 2020 um 17:21: > > On Feb 23, 2020, at 03:12, Philipp Tanlak > wrote: > > > > Hey PHP Devs! > > > > Since the RFC to str_contains is now almost a week old and most of the > > discussion happened in the initial discussion/proposal thread, I wasn't > > sure if everyone has seen it. Therefore I'd like to create this new ema= il > > thread with the correct label for RFC discussions, before we open up th= e > > RFC for voting in approximately a week from now. > > > > If there is any feedback or something you'd like to discuss, feel free = to > > leave it here. > > > > Link to RFC: https://wiki.php.net/rfc/str_contains > > > > Regards > > Philipp > > > Just so I=E2=80=99m clear on the functionality here, is this essentially = the same > behavior as the following? > > > strpos($haystack, $needle) !=3D=3D false > > > And the purpose is primarily for a better developer experience by reducin= g > confusion through providing a dedicated function for this behavior? > > Cheers, > Ben > Yes, this is correct. Regards Philipp --000000000000c9d7cf059f5531c6--