Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127740 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 0993B1A00BC for ; Mon, 23 Jun 2025 23:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750720640; bh=MgkYhh7effD+5v0Mtj3aCiu/Z3elS3ZHxIs+5ZHL7bQ=; h=Date:From:To:In-Reply-To:References:Subject:From; b=OauzRUS9b6sdQu9f95j8si0dl62s4+ucnRUhMmc8urUIInKwiHfYEgk+jIGlEVYmu FgEDYo5nyvhUcwoYkyU+/s0ze7wCzVkJ417T7orzJEX3IlbM9mp2yobuApyk+xVOZq s5TB1p5bi36Pys4+y/EC8Mr0IQNn+lCqnf4TYUPH1Tnl00qHTgMUiwqVIrLbvnJLZw k6y7j1m8Nlb3WRP2NLECVUGRw+wYuj68vXFvGtW6/xgcdK070yFWvS9TIuho2aLpNx XrrPfvPe9lCeV6h5GZjOE1hu9Ti1f/Bv+VOwKAxYCe9+CdOaOlwTxtFRpQdtWMCoei fiQzen8/9wj1Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E8B0518006A for ; Mon, 23 Jun 2025 23:17:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 23 Jun 2025 23:17:19 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id C6B3A1D00212 for ; Mon, 23 Jun 2025 19:19:14 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Mon, 23 Jun 2025 19:19:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm1; t=1750720754; x=1750807154; bh=wc1JWbtXjxMTzc+ZMwUty K2KgNHtEAwV6RQIkTkDYxU=; b=lgT7PiVOOXlFFWNfGNMJseM1uBrR/Hss/G5ai c72CASRNMUBZokFOolj4ZKdf3aYdQgTFToOjxwlTa+uq0Sr+TNKaOGKb3zpalUzJ LzVyZOA7GsmJNgFDYhU570wmoWrkfIo8uhhzLcb+whafBOQgXj0ukT/GgVFEcbEP tM/C8QA0dEy7rn2K/2VGJV4+oBAMwe61C/iVEIQ2eq1fM6XJ5+Zw8KmiAPp+e5sg Ulpwp/4h67CEHpceoDtvxhYUXlU3xbv0MD+Vf0frLJIfUkFtT0Cxv1bS0x/A0aZa g43qoIOv/bG8m6QZth3iF92HSETDuuxCFcQjshc3y/Y6kjizg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1750720754; x=1750807154; bh=w c1JWbtXjxMTzc+ZMwUtyK2KgNHtEAwV6RQIkTkDYxU=; b=Y3pB4GOotRNdddGEN SNaxYLOjaN892WDyTNQk5TF/vJdw1WsaYa3mfWC1qyLpVZy2ZBEOyChANS1qF6Yv s6pf8wXGABq1M9fSHB8rD0Nw4EW9gaD3761O8tSojUSFZfPEO4oC9Izswl7Vsadp UvGYZdTnDD3UTZFHugTQE1Fhp+KnEyCgluadT4gDG2ndY4iOKwTRvAd+3iwPv/E0 69pnMEvVfxfTkv7px19W5D1Aw+J3jfGPkr64oeBYfuJ5Bz9T/KibtMW1MdYh11f+ hwHmpO5Q4o1pH2NK2U33j7+irhTRj6eVQdDSnaOFnYStj+aqlZjYvfNpFa+9vH0w cUWNg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddukeefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfnfgrrhhrhicu ifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomheqne cuggftrfgrthhtvghrnhepgfeggeehhfdtjeefffdtteegieevieekgfefueefheehieev keegkeeugefhuddtnecuffhomhgrihhnpehphhhprdhnvghtpdhgihhthhhusgdrtghomh dpvgigthgvrhhnrghlshdrihhonecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmpdhnsg gprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghr nhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 3DBF9700063; Mon, 23 Jun 2025 19:19:14 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: Ta0f257222eeff7bb Date: Mon, 23 Jun 2025 18:18:43 -0500 To: "php internals" Message-ID: <69ee9492-f7eb-4287-b222-41682ee41879@app.fastmail.com> In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] str_icontains Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Sun, Jun 15, 2025, at 3:12 PM, Adam Cable wrote: > Hello internals, > > I'd like to present my first RFC - str_icontains, a case-insensitive > friend of str_contains > > RFC: https://wiki.php.net/rfc/str_icontains > PR (including tests): https://github.com/php/php-src/pull/18705 > > Previous discussion: https://externals.io/message/127504 > > Thanks, > Adam When str_contains() was added, a case-insensitive version was deliberately omitted in favor of "just use strtolower() yourself." Have you gone back to see the arguments for that to determine if they're still relevant? (I don't recall the details; I think one of them was function count explosion, but I think there were more.) --Larry Garfield