Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108738 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46789 invoked from network); 24 Feb 2020 18:04:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Feb 2020 18:04:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B324C18050B for ; Mon, 24 Feb 2020 08:21:46 -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-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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:21:46 -0800 (PST) Received: by mail-yb1-f170.google.com with SMTP id z125so4874012ybf.9 for ; Mon, 24 Feb 2020 08:21:46 -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=56QolZoQVd2rNCeTOvUJJUUEIgUdGRAVb475Muqmues=; b=UwzOJK8GstTBmDgHDdzjhBZblU8opNpZeSz+WxElgSlV2GNLfVuJwvMdbrUPboOGI6 1E+HqMgBTcVDmnHQxI2E7F5NirwqdzCoWzHd/bHicA9ZR22vfHtwXVqgnREYqoFmmFtZ UnCpNEDagWKu7eUYqi88/1bKFfnEfKPFVFVj4AkqQZS8e19UBL0CBZKwF5/La0O4qRGD 0fagRdcW4bqtyg6XlVQ7i8jlG+5kk5UeElyNGGo3npPUkpEnWFO38vmflgycoCsITICu NFsIZO3N8u2cnvc6eaawjKQCBF2zv9yM9rVnqzDLJYBiopzfk4AWyD+E5JW79j4ADuVh uHCw== 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=56QolZoQVd2rNCeTOvUJJUUEIgUdGRAVb475Muqmues=; b=Vag856Eo+EQJABPsT1kMPmQmmpdupuUP1oGKszvSQJtSRxFFrMKry9KJDkpujZHc5A 11IbaMSq+ooQXAjtMIokP1Qo9IFTC8vPXZf4AYUxD5sOWB92j3joFxTuCLVjkizQ7NyU KrveacLvrG1cdBS7XepTWd+RurnMdc4j6RGEC398sWGrXlwoofS65ae0HcWTADGcIjUW DE2Ah6RdXKVlyJNJ6iXuONcSZJ/6EnQTUYdg0uMZTCj3Qkah7tw/1GTH05vvdkfGj3uM wsHK7BseNOQkxctgAPwGxWStrrZm9rgDbO6LIwJ6dvc0/L3w3bqWVTkWs0QPNtn5Du+G bY/w== X-Gm-Message-State: APjAAAUzawQQpqBVWyGMe7Ml5TMaDVNMd2ctrfEssTjeUWb4/ttc1XQj WVhHJP9xukWDvFE5qCMiHOsxvQ== X-Google-Smtp-Source: APXvYqw9irMrnIn+PHaCtFH+FyYTED29BUh7SgnBsQW9kmBl1alOvE5PnjyICV7jGV2eLetreB6FBg== X-Received: by 2002:a25:ba8b:: with SMTP id s11mr44328669ybg.343.1582561304080; Mon, 24 Feb 2020 08:21:44 -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 e63sm5162929ywd.64.2020.02.24.08.21.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Feb 2020 08:21:43 -0800 (PST) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_DB093035-EF14-4BA6-B5FE-1BEF075EDB30"; 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:21:41 -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=_DB093035-EF14-4BA6-B5FE-1BEF075EDB30 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 23, 2020, at 03:12, Philipp Tanlak = wrote: >=20 > Hey PHP Devs! >=20 > 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. >=20 > If there is any feedback or something you'd like to discuss, feel free = to > leave it here. >=20 > Link to RFC: https://wiki.php.net/rfc/str_contains >=20 > 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 = reducing confusion through providing a dedicated function for this = behavior? Cheers, Ben --Apple-Mail=_DB093035-EF14-4BA6-B5FE-1BEF075EDB30 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----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXlP4FQAKCRCwLZeYnIwH G/LYAQCcvmEa7ZrZVXX095FHWPmFVdJCEHig7dt8kj3m8kbvYgD/TwXq8nSb+xXt lTLllXvVM97fEsgqauUMtjaiMLo4Dks= =3yQL -----END PGP SIGNATURE----- --Apple-Mail=_DB093035-EF14-4BA6-B5FE-1BEF075EDB30--