Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130120 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 388231A00BC for ; Sat, 21 Feb 2026 16:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771691239; bh=hyP8NfMOn2EBaXQBhcK6TrcsIwfUafO/i55c+Bafh+M=; h=Date:From:To:Subject:In-Reply-To:References:From; b=kIPjFVZsk84QWjsvQEf6gnwoHrM4DdLYd8t8Z5mcyNjfYgyRN8MDukhbfEJQ6wATX mENZDUcePyb3jltKUU2NihEgFjUiboLJ99x9ceQbsaBOTRN11FLg8o8G/EPNeUiult 79KYpWY6GRFcrPHGygoCohmRFfMMF6HJkNH8ZT8q2/SdXuxwbX0hu3IeFwXo4TPhAX Lwxcfa5u39+X4ycGnU1Bxv1m1U+u+445y5TzV2ywFmNwLvHE7VtyBW7e1pw3XMEym5 vIrYcwBjMUVrTPEH6Gk4gWRSCwsVN5m1FPl8uUeSPdLAh1Iz46e7tzs0LYONeQWvUl EnuxRDiSPs2yA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DC8C1180048 for ; Sat, 21 Feb 2026 16:27:18 +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_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) (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 ; Sat, 21 Feb 2026 16:27:18 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 730511D00045 for ; Sat, 21 Feb 2026 11:27:12 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sat, 21 Feb 2026 11:27:12 -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=fm3; t=1771691232; x=1771777632; bh=hyP8NfMOn2EBaXQBhcK6TrcsIwfUafO/i55c+Bafh+M=; b= gbZI82qeQLHxUDD8qzx8CyeOWtLp4s6qz5AuQxIAyKF5YTyfLsuqvP9JUwSe3oTr AWLU8n1Lba6L09pbucWqHpd7kpds5r2zxITVN5ZzdHONnSOkRc9NOj4BTq2uUGvx g4jZ+EMhNpgiPR2P24o8UxLn4IJJl0GbcBaAHgu1o374UsUxc590aawYjkuNC3Fd XOEPCZoBIXj+NYQKqNMSzNB4qq3PNhxHrBX0zKmNu3DAaFW8Q4MoVoxSRD0Cnxnb /TVmhM2PWeQj/NUExqMEtEf8ebkCHxigx5FaBldEkfLLiWGbFQebhnBLy+t9Z+T/ y0URWiel5QJ4m6zVGruQxg== 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=fm3; t=1771691232; x=1771777632; bh=h yP8NfMOn2EBaXQBhcK6TrcsIwfUafO/i55c+Bafh+M=; b=gRa6El6bD39QpsbDF tJaVuyeGd4w+FHRKWpC+OJV9C0urtyDPcen6OR3n5rfSkg63bp//cv4z6MwmhsGu m/zVQfZjAmTDk6HeqmCkF8CYnKJhDgCVZNlkJ8EVBgDP+JLbW/neCxtVF+sKsjrJ c2bN7BGvpxn3qktpLT/AC4q7uBwIsbNAQPMmbQo76pKBIgZNkW8LeBiD9qU7lUK3 d9iL8/nwKVxuVWcns9XXrhSWmZNKAGgrLylIBz1+NkhJpMW9MMPqrmsAwzLOMjb8 bwpT6ElRW01ujLxSpQKUmprg1mp/htqGnOl4pe0p4sZjH5VIdigvxfG05bUe/wpJ oXnQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvfedukeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmnecujf gurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghn ucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtg hordhukheqnecuggftrfgrthhtvghrnhepueevleffieefgefhhfeujeduteeigeetteeg ffegledvhffhleevvdeijedugeeunecuffhomhgrihhnpeefvheglhdrohhrghenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprdhp hhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 21 Feb 2026 11:27:11 -0500 (EST) Date: Sat, 21 Feb 2026 16:27:07 +0000 To: internals@lists.php.net Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BIDEA_for_RF?= =?US-ASCII?Q?C=5D_let_the_=22new=22_operator_?= =?US-ASCII?Q?fail_when_the_=5F=5Fconstruct=28?= =?US-ASCII?Q?=29_function_returns_a_value=2E?= User-Agent: K-9 Mail for Android In-Reply-To: References: <1f25d77e-224b-40d6-bf19-18dfdfc9de54@rwec.co.uk> <453bc043-b4ee-423e-9561-55510f5c20a7@rwec.co.uk> <6412E222-9B0F-4139-A6F9-7D0C686197BF@rwec.co.uk> Message-ID: <88259C1D-1D31-4FB1-8CA8-1F704378467D@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 20 February 2026 16:07:01 GMT, Mirco Babin w= rote: >Failing early is not always possible=2E The compiler can not always infer= e >the correct return type=2E PHP defines "void" separately from "null", precisely so that the compiler = doesn't need to infer anything about the returned value=2E All it has to do= is distinguish "return;" from "return some_expression;" Example: https://3v4l=2Eorg/cTaBP Rowan Tommins [IMSoP]