Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129906 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 172F71A00BC for ; Fri, 23 Jan 2026 17:45:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769190335; bh=DakR++5cSOaPGtUCkh8PKOuuSl8w8POXFDsISUKXezI=; h=Date:From:To:Subject:In-Reply-To:References:From; b=PmETRy+W4+Po9mOT17CQdUFz7XYfOivER+C9A3UDDAtEEhOd8GJRZ98Sz9LBzvHQr OisCl1K22yVIDiXRN6M+p7Ef2wyiHg1sSqB0ip7R3c3M5RHdFdGaaQjor56YyWKbXu DIjvxliC2vE56S23/yBunC6qGTh6mR0FbYYPVJQBVRGSlfso7qRRwtPu3QOlthGROF r1/wt5Ys/ailj8w5/oMQMl1ssSZFsCX10pvIXxN6SnMnBdmvt9xuvz0Nm6F6ZN8s7h jJenPJpv2qmhy5SouDL7b6xeMRzIEzZYazlJP1a4FOm1YUNbKwP+PJIvTHH+VWhY8f LWyfPCM/jX0WQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B8A5D180507 for ; Fri, 23 Jan 2026 17:45:34 +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=-0.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-b2-smtp.messagingengine.com (fhigh-b2-smtp.messagingengine.com [202.12.124.153]) (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 ; Fri, 23 Jan 2026 17:45:34 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 3787C7A008E for ; Fri, 23 Jan 2026 12:45:29 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Fri, 23 Jan 2026 12:45:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; 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=fm2; t=1769190329; x=1769276729; bh=DakR++5cSOaPGtUCkh8PKOuuSl8w8POXFDsISUKXezI=; b= XbbrREyySehvfEwgJf6p+5buiJkIAVcubf5rlk1rRajTTAeVwXz9IZBFXDps2wWf 76W+IGgXJ3trvsC7xyeqfODU32LXNnqhK70s94VmSYLWNbzufWtHBYYuD/+St+6q t8xsviGsqSkVSIQadn1hAsbspIVV/F0LXfmsTfXyTzNVbZsR1TyEFgY+xdUbr6Q+ 66ty5rj1hliukE+Rx7Yonu/yU4F0xL4frvbxGyung8XiMWbVmg/ztVNSkjYMtdcr SOxDjY/O1QKIWEqKguDU/AIyti0obsqjBXOF9Y2amQRRFmWnK9ukRzqYQqQzIy1E 1lIrelbgE621rD9cPj62CA== 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=fm2; t=1769190329; x=1769276729; bh=D akR++5cSOaPGtUCkh8PKOuuSl8w8POXFDsISUKXezI=; b=kit2XM1kMfjTM+VB1 1xzYUwT5736bFQ8wrWX08TcIqrnvUwYiuD56ZAFDqjmpT9yEBpCY7z08n8UaDZ+m 8H804qrt9Baox5/rMYoroXZueZmc8QnimgSGzL+7SVlEg5qmTP5P0ZYY+B81I3P4 bR6z2rEVtQ/0hhdVzT6key+j5a+FiD5QYNGB1mzXAg+elNUMJV6i1PfiUuneyNOv vdlbl741eQBx23qNXeeiVtU4BDJsfb0g9SeFtzfO77622dSUn6K6E0zfPmqShMdi iGxZo89ACtlcMg4VwohvkE5J/SMZV0CQr42gDA0xdU6kdVBjuNBO42J8ggpzImN4 aCsSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddugeelieejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghn ucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtg hordhukheqnecuggftrfgrthhtvghrnhepheelffetiefgveduteefudegtdduveeludeg ueegleehiefhhefgtdekveevgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhkpdhnsggp rhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnh grlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Jan 2026 12:45:28 -0500 (EST) Date: Fri, 23 Jan 2026 17:42:46 +0000 To: PHP Internals Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D_Deprecate_Fuzzy_Type_?= =?US-ASCII?Q?Casts_and_Allow_Stringable_in_Strict_Mode?= User-Agent: K-9 Mail for Android In-Reply-To: References: <31563ed1-ac44-47ef-9fca-3ebbfc567ba5@sandfox.me> Message-ID: <8A9F3BDD-1C65-4E6F-BD65-C43F017D52E2@rwec.co.uk> Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 23 January 2026 17:05:09 GMT, Alexandre Daubois wrote: >3=2E Developers who truly need to extract integers from strings like >"123abc" can use explicit parsing=2E This makes the intent explicit: >"I'm extracting a number from potentially dirty input", rather than >relying on cast semantics that differ from type validation=2E The existing functions *are* explicit=2E They have *always* had the semant= ics of "try to extract an integer from this value"=2E They are not "problem= atic", they are a perfectly reasonable feature for the language to include= =2E The *new* functionality needed is "validate that this value is int-like, a= nd only give me an integer if it is"=2E I don't think we should repurpose widely-used syntax for a different use c= ase=2E If we want new functionality, with new semantics, we should add new = syntax for that=2E Rowan Tommins [IMSoP]