Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127566 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 D30F01A00BC for ; Tue, 3 Jun 2025 16:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748969746; bh=F1pWMQBBW5V70TYBvWveu0wP0Pi+fvo7S8Ini+94iwE=; h=Date:From:To:In-Reply-To:References:Subject:From; b=SgYuXKwznl5de5epWm3QCtyO+trhMegRzvxSrn90g1E5ueZg+bSClzPBIz0r63Drs /4mBg+ObobpIjDSnj0guwXLfFQheEpYRmkjv2gZYuZq5P+Nk5bAm+4M1vHXOpKfDJU ZGJOULGIBrv4GEW6ItYdVxzbAKuOUD508Rc0vVBsi1aCoCJcvmh4/kQ93jofcKISFL MyLNELH7x/qW+XppUdp33FaxFqA6pNzZorfapqVmXThcfqa2/ywZd9oz90+51D/6T8 dx1V2UsBwtc5y+8TqwiUmQOcS0Nfzscrzhtot8xaxVtO1lSC5bRaAEUqhTRXSDhYB7 O1Jwmdenx17zw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C5773180042 for ; Tue, 3 Jun 2025 16:55:45 +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 fhigh-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 3 Jun 2025 16:55:45 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5CCE711400F9 for ; Tue, 3 Jun 2025 12:57:49 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Tue, 03 Jun 2025 12:57:49 -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=1748969869; x=1749056269; bh=tcrWTVDQpFuyQkFXST999 WpDoATTj6dBESPimIJrl/k=; b=OdjgbD0bIEJ+n/JtSwEORF3H7XN9ykTtzozCp CVe3Y6z1hODQ896Wpa82AylWtKwFolhob6BP73SjjWKQOV/4MVsbEr9G//KYZHCj hjNeZiG/7deOZGFA/Et+Bu2OnuSBZFMywzJF9oZAOw5JSFlSU6hQp/IHYklYmn2f qW3eQrHCHf6ILLH+x6tgSlPOafsmm/g2hsh/2TUlu72hxpN67PCU9H2LUaX/MbNr Z1ddFVTNDFAE7GYZsfMirFd6y8a1pxRJk0sXS5qJcpEjTmoICdjsjC6zR2abumVd gJuwE2Ax+CH0kaxQO9qnkICXDLF3V7c1y2ppEtJPZQOoDJrsw== 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=1748969869; x=1749056269; bh=t crWTVDQpFuyQkFXST999WpDoATTj6dBESPimIJrl/k=; b=GsrfHVSbFCCHuLNnu s+yBTVvbXmc7U0BR0orUmZwR4BJWNu/MRQb/XDE+tJRVME8knOC6ysfXTdVThQE/ wPzSqK86YxBVTDl2UaNtNhc2rrx5ywichZIvtwHrOzNV9Jw5mPQ6dPfjjNutRmey dpldeWrYHTw9lG3D9r/SyzIH28yR70vXvY1Iv9EG/DjrxXA2Dd0x9k+89wfXdfrr eDE+KIcFKeZKKV/2xtrzjPp2ZagsdeHB/MR7eSwhYXfns6i+klUqt7v4A17CILG2 ZmrQCjOIQJ7UpMRgJI09dMOBUa2+AF9NVz3n5aqtpRIbC5pAPyw9Npe+w83foRUg bjd4w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgfgsehtjeertdertddtnecu hfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivg hlughtvggthhdrtghomheqnecuggftrfgrthhtvghrnhepudegvdelgfeugeehfeejteff udevleethfefgeejffffleegtddtveekgeekudfgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghh rdgtohhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 19CBF700060; Tue, 3 Jun 2025 12:57:49 -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: T8ad50b7ff47c9016 Date: Tue, 03 Jun 2025 11:57:10 -0500 To: "php internals" Message-ID: <5dbc06ee-ca72-4e22-a688-2d4ab837765c@app.fastmail.com> In-Reply-To: References: <3Yl0UGauXmKqk7s7Hqbv6iaXru-hZHf8Wj6VjwwihgRSaqZo5EZ2ndsOle-ae41C-lvnirynWt6PpuD7UJPL0zPCw18QHFE81Eb--fiiEbc=@gpb.moe> Subject: Re: [PHP-DEV][RFC] Deprecate type juggling to and from bool type within the function type juggling context Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Mon, Jun 2, 2025, at 4:02 PM, Rob Landers wrote: > The rules around coercion are pretty > simple and well documented. Just to note, however simple or not simple they are in 8.4, they are substantially simpler and more logical in 8.4 than they were in 7.0 when strict typing was introduced. And most of that improved simplicity is due to Gina's various RFCs along these lines, which have been highly beneficial even if they sometimes get pushback from the "PHP doesn't care about BC" crowd. That doesn't inherently mean this RFC is good or bad, but the trend/track record has been squeezing the weirdness out of type juggling until weak mode and strict mode are close enough to touch, and the language is better for it. --Larry Garfield