Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108740 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54938 invoked from network); 24 Feb 2020 18:39:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Feb 2020 18:39:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B8F57180211 for ; Mon, 24 Feb 2020 08:56:52 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (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:56:52 -0800 (PST) Received: by mail-yb1-f173.google.com with SMTP id j78so4919272ybg.12 for ; Mon, 24 Feb 2020 08:56:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=6P2cmdNWb3/QrGrs/gAGMMZ1NqGkOv3T0OBbfRe2ZHY=; b=JMX5U7mr8SEjC104MdQ346gLq428d+QGN9b807CWGDRC5gtDN/WmqBvFZKO5Vg07ZY kyRv5+U2DrrzOoB3IfKRAsX4e1gJf3qNxQWK9hAE9Xz6E/ypoinOVzcjYv+L8rmLZSxu sX+nMj7CNayt4K3x5vk1zM2YJOmWqXbG879A6ppt/R8Jyr1Lx+LxXWA0+sohMyd4cM24 YZJ43ogOTCSuUWSi6rXnQu6PwEYaIRg7sXu5aFwroQSZAHzy3+6LmBI4Dp1KlTaxjbR9 SmstZU8BsRS988Ce2cHcx79BN7g8Gnt/klmyBrIDPMtEOmWfW0XV6kyDBu678SZA0toE 8XRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=6P2cmdNWb3/QrGrs/gAGMMZ1NqGkOv3T0OBbfRe2ZHY=; b=mbZ72myu/yO/AtJBhKgzs3ovh7P1yRgKxATO0/IvU/xP5vFgdWSOtXQHimV0K7R5nk j1fX/w0tOjBmak9ZT3V1UjgafLM9rMl3IYDQK+fmKq7FlSuU5mZNP1e8mELYvOwY8Sul 5QwiovVufOKegrQiuC1DMo5lbFKFFk7aOdI6k0fojJDBf6IOeCJcg/MERNYkl5HMAgL/ NeVTjT4FKGDC/ptndloEQv1DszG2dh3AbZP4CZs7TDhIkXCxlFhhdePenXvnyT9L19NO cVz9iQbX1/aHIX0XrlESVjh6gW2tHnb7piO7uVF0H5cdzeqfs6BJVmAgt7PL/7gXYN3M ws1g== X-Gm-Message-State: APjAAAVqvhzT0d6R85RkQ5N/9ek1qfa4W7h4uvyU2THP0qdEjvHAbSkl 5HERGWBOSkJW9AEY1pkHenUgsA== X-Google-Smtp-Source: APXvYqz2zfmIglSNLTzIMW7TqBRnZD1Gip7MU1xRu0tnL3abMmPUjdEIlEI2dIMDtQ26J9hEynTRGA== X-Received: by 2002:a25:cf0f:: with SMTP id f15mr45189635ybg.142.1582563409992; Mon, 24 Feb 2020 08:56:49 -0800 (PST) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id p204sm5514704ywp.14.2020.02.24.08.56.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Feb 2020 08:56:49 -0800 (PST) Message-ID: <72DB7A36-CB51-4901-AF63-6B0B46664C44@benramsey.com> Content-Type: multipart/signed; boundary="Apple-Mail=_19FE6BCE-D788-40D8-86C5-AA5CEE970A34"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Mon, 24 Feb 2020 10:56:48 -0600 In-Reply-To: Cc: PHP internals To: Philipp Tanlak References: X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] str_contains From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_19FE6BCE-D788-40D8-86C5-AA5CEE970A34 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 24, 2020, at 10:52, Philipp Tanlak = wrote: >=20 >> 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 = email >> > thread with the correct label for RFC discussions, before we open = up the >> > 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 >>=20 >>=20 >> Just so I=E2=80=99m clear on the functionality here, is this = essentially the same behavior as the following? >>=20 >>=20 >> strpos($haystack, $needle) !=3D=3D false >>=20 >>=20 >> And the purpose is primarily for a better developer experience by = reducing confusion through providing a dedicated function for this = behavior? >=20 > Yes, this is correct. As an effort to improve developer experience, I=E2=80=99m on board with = this. I think it make sense to add this. Cheers, Ben --Apple-Mail=_19FE6BCE-D788-40D8-86C5-AA5CEE970A34 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXlQAUAAKCRCwLZeYnIwH G+KaAPwKD3xLP57akgaOB+MWFyVCY1Bm5zYycqRQzeHguSF77AD+NiFpI6ee0PXQ v9WQrWsjJWLRFEzcA7h8eK0Wl3eAgzo= =pJiE -----END PGP SIGNATURE----- --Apple-Mail=_19FE6BCE-D788-40D8-86C5-AA5CEE970A34--