Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127948 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 D13351A00BC for ; Mon, 7 Jul 2025 18:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751911161; bh=b1Fbb/qrRB8LmenLdQi0A9+xwx+XkmJcOWb2uvp4v8s=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=Hc9V4a7aKCBPRLm1r2lSCvhI7IkD+jboO16BpGofd51jqJiTdhpBRZDDq41uLQa4g YPgEY7rX2gJxg86NxrPFp/pILeA6rR7oNL8lN4ryfYmIQDnQIh6mrdxrY/srs/spLr S7AqvKWehwDZS2mCa/qk3Jrr9NPqnd4pUrwBTjdNv7R0RZosBK1xf81wQYUbO6nFpC n0gqcwtEeLcplFui+RXnEFT6p6QcP7NWaQ0A0uwz6MbK7XQEFTCrL7pVQogn58KKRx 2ipABtt2mecXnHCdy9u0RHDqEy6ntVH1OXVmsEdo1EIyGi+8d42XYyJfwl/e6k8evf 6eRJk+r+p9m+Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6A302180053 for ; Mon, 7 Jul 2025 17:59:17 +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_PASS,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS 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-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.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, 7 Jul 2025 17:59:17 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 2B27FEC0BFE; Mon, 7 Jul 2025 14:01:07 -0400 (EDT) Received: from phl-imap-08 ([10.202.2.84]) by phl-compute-04.internal (MEProxy); Mon, 07 Jul 2025 14:01:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=josephleedy.dev; h=cc: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=1751911267; x=1751997667; bh=b1Fbb/qrRB8LmenLdQi0A9+xwx+XkmJc OWb2uvp4v8s=; b=YquPbnR3JM0qtlx8U7TsR88tTFVgArx6MhmRn1w7OYPIcPwi hZQn2FyfKbiu3N2+H4hv2kx3fiYu1Oi5y27muUaTdifc61n44hxqgx9ZAgAA5wXF 5iOuFB9WjwAtGJZFXX8KpNeZ3uLOX+R/LriXmInN4KM2MsguRjZ3oMzvvgn46+t2 L6ueVJgaInq3eiphO0Kobo2a1pURLnt1OAXh/GGk9zQjv+aF87H2L2B+cwHbamDi rZ3fQLSEKiqoyQIzCkSrq/jcFhwGC6C1WwPpMRVbyBxifb+qo+0YatjW0dK8MwdO 5DpePPLVQ9h0TFIduHKmDIJGgCruU9PoLy/2Jg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1751911267; x= 1751997667; bh=b1Fbb/qrRB8LmenLdQi0A9+xwx+XkmJcOWb2uvp4v8s=; b=D mY+VWs82RSeRKdf440KUequ/vRKphfXVFTGm650r6ELJ0renFp5gNIyxEcbPAZYA 5EvxaDta0KHr0WGFngkjmpvO/ke2lcJ4i4L5GCCp0Bht+yarMyMZNhAysNyLet6T H8+MsHqxhE7IpzYuVIbhKCZvSS0Wf2yk8evs6y3m4xeHyatudvY5tM4W6MQUChYC n+aHtzi9HkHdAerq66GMmbkPtfBax8zuC/7ezzzGH4Wc9MzYZQuzmeoPVbvRMM1E c70XixCajoGrZIyPC2mHRe83haOmyL749imSOsMTPnx+rHITpcNk5pzs9F+pwSCY urSmdMn3a8BHbPhVEKf+Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdefvdegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvvefkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdflohhsvghp hhcunfgvvgguhidfuceojhhoshgvphhhodhphhhpsehjohhsvghphhhlvggvugihrdguvg hvqeenucggtffrrghtthgvrhhnpeevvdeviedtffeluefftedvkedtudefheffjeelhffg gfffgeduvdffffevfeekueenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhsvghphhdophhhphes jhhoshgvphhhlhgvvgguhidruggvvhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmh htphhouhhtpdhrtghpthhtoheptghlrghuuggvrdhprggthhgvsehgmhgrihhlrdgtohhm pdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i75064821:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id BDBBD2CE0072; Mon, 7 Jul 2025 14:01:06 -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: T9646be959bed2f6b Date: Mon, 07 Jul 2025 12:00:32 -0600 To: "Claude Pache" Cc: "PHP Internals" Message-ID: <54be3cf7-0714-488f-b40f-58770a0708c1@app.fastmail.com> In-Reply-To: <690F164A-48F3-42B8-A3B6-3CECC3367B24@gmail.com> References: <9f14ae52-6c78-41a1-8d2a-7330fd92d1a9@app.fastmail.com> <690F164A-48F3-42B8-A3B6-3CECC3367B24@gmail.com> Subject: Re: [PHP-DEV] [Discussion][RFC Idea] Cast Variables by Reference Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: joseph+php@josephleedy.dev ("Joseph Leedy") On Mon, Jul 7, 2025, at 11:54, Claude Pache wrote:=20 > Hi, >=20 > There is already a built-in function for that very purpose, namely `se= ttype()`, see: >=20 > https://www.php.net/settype >=20 >=20 > =E2=80=94Claude Thanks, Claude. Over twenty years of PHP development and I didn't know t= hat function exists (or I forgot about it). TIL! Still, this function se= ems clunkier than a straight cast would be.=20