Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127944 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 80BF91A00BC for ; Mon, 7 Jul 2025 16:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751907378; bh=/Te/mT+JhUU2k4287B1TFWhsY7ELBtyDAi9907+0VWQ=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=I2zpY/eOAGbW9WUGDVdUUHW1lBwFDmG8sx1yFBLtIbv9u8W2DKvm3zFd1iXK7/I2M 8ngMP4Ei1oePjoZltWqM0R0ZE27vQ0RVPYM8wKa5v9JTl7RUkKDxRZtzo/HSa7o61D +WzEyGOSQfp3IiwwIlvoDdX7qVFFYPetHpy1dEiKIk84qUS9ZYjgINJfyQLkVYXJRI YvThiY80t1ysZ1vC3HvhzdZu29zLhXLXcQy1uANSMIz8hFCQ30Rs9x+tH3UzpasttI AW05xMBPPXk0oihjafAW5L3Knxe1UIy6mHkLaD2V295+senW74YWy/urYGVIEqctp5 QJ/0p6waqkN/w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AFC0A18089E for ; Mon, 7 Jul 2025 16:56:16 +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-b8-smtp.messagingengine.com (fout-b8-smtp.messagingengine.com [202.12.124.151]) (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 ; Mon, 7 Jul 2025 16:56:14 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 7AB781D001CC; Mon, 7 Jul 2025 12:58:05 -0400 (EDT) Received: from phl-imap-08 ([10.202.2.84]) by phl-compute-04.internal (MEProxy); Mon, 07 Jul 2025 12:58:05 -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=1751907485; x=1751993885; bh=/Te/mT+JhUU2k4287B1TFWhsY7ELBtyD Ai9907+0VWQ=; b=Zs4VNtESlNaRrDTKa2DnEzSWnf3Zsew9fpfV9wU2AaQsp5VQ SynIw2U6mpfD3g++e5eKaHGabHgMb6K6EKVEgyqmBiDmuMDlczgfNI6EcwMV5IMJ ZIjULkf/Kiea9UsyA3SG8CUiaD3C6ABFNYW5w1IYV4Msv5wBUOxNhBEuZMbEIS0M usKp6/W0H/KCAAJyKp2nZw03mUD/J1wdWxWqolq/IVWElkeGqWITySjEC/nEQ3xd LR2HnzVQK19VuD4IQm8iy6YsFPPgcwm7Y7tucvO7W+3guaeq43OiJfrAQbkyu78X ryUx/D+0GyUbOisU2AMUi83EJwp+CVsC/1GtlA== 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=1751907485; x= 1751993885; bh=/Te/mT+JhUU2k4287B1TFWhsY7ELBtyDAi9907+0VWQ=; b=J L2WsOQOVpgTAOFnnzvL1EvKNdfjSk8uBOLzMuILCMdwpP94I36j3RM2yMLRxTrYF trmpDZRV5qY1sokO42hGcjFpcFUqVGlmjmZayO+zz3yPNmSuwL0+ABIdE4VRuGa6 TbShIL54XCcFZizlRwln4xTrxOgd3GRJAXWYOKZy2wq4E73gMYWL0qNUsUgpcz+s 52pyKrogC93dMsOwHKMMT0Jm7OonREHwGBl2hspknMzXiNaPw0YMWZpkVU2+lj/8 90w9IQDKOLDgJZiC5ki458U/SjmWE5gYtXR4BSNrE/jF2Ociy5OZAndYPMGPBuzO 5X9WhfqUad4NL8i5wLWrQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdefvdefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvvefkjghfufgtgfesthejredtredttdenucfhrhhomhepfdflohhsvghp hhcunfgvvgguhidfuceojhhoshgvphhhodhphhhpsehjohhsvghphhhlvggvugihrdguvg hvqeenucggtffrrghtthgvrhhnpeeutdfgueffuddthfefheeifeduveeuuefggffhjeff feeludelgfeuueetleefgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehjohhsvghphhdophhhphesjhhoshgvphhhlhgvvgguhidruggvvhdp nhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprhhosg essghothhtlhgvugdrtghouggvshdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhs thhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i75064821:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 15E382CE0072; Mon, 7 Jul 2025 12:58:05 -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 10:57:43 -0600 To: "Rob Landers" Cc: "PHP Internals" Message-ID: <374087f9-60d4-4ae5-9a57-90a3d8e02b07@app.fastmail.com> In-Reply-To: <03087afc-e326-4bf4-aa08-6462871f10f1@app.fastmail.com> References: <9f14ae52-6c78-41a1-8d2a-7330fd92d1a9@app.fastmail.com> <03087afc-e326-4bf4-aa08-6462871f10f1@app.fastmail.com> Subject: Re: [PHP-DEV] [Discussion][RFC Idea] Cast Variables by Reference Content-Type: text/plain Content-Transfer-Encoding: 7bit From: joseph+php@josephleedy.dev ("Joseph Leedy") On Mon, Jul 7, 2025, at 10:46, Rob Landers wrote: > This is basically how non-strict mode works; there's no need for a cast. (I very rarely > use strict mode, so I was a little confused on why you'd ever want to do this) I always code in strict mode, so I find myself having to cast variables quite often.