Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127346 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 815A01A00BC for ; Tue, 13 May 2025 19:35:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1747164791; bh=cF3vXN1DrWzH7DWg/Fn12HbFmCSHrITaEzZEw0D7DXk=; h=Date:From:To:In-Reply-To:References:Subject:From; b=Xjq9/n0zADoAj1Sv0RynCdLnDS30vJgWA4t8H0QIM6ksZaNSmVwUd0RkqpfDNjsB0 hl/7/cd/+0ji+Rladqz1OhYblmZ+my9RoOzlHba+kHZK5qXiEfJfXXvdP+5oD4Nx6M OJWO8S+GQ5y8lKIGSZtw/yg7OXuj4iEcouhJUQ6PsofyJWUY8406qxODgA+7aXZK20 s6V1mHyYHtYvsYwWtW5rO5TgYbTBRJvPrUfyLvdY0ftb+Wu2t0WkXIIx14dymfiTWS fWbZdPCqpwBLMmEL+CgyY5djSYncIVwDi4LZDqc2xcnjPyw7sTQW/qiQR697/krPMc qCHduWUFJbLYQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8FD121801D4 for ; Tue, 13 May 2025 19:33:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) 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, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (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 ; Tue, 13 May 2025 19:33:10 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 44A8B13800D2 for ; Tue, 13 May 2025 15:35:21 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Tue, 13 May 2025 15:35:21 -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=fm3; t=1747164921; x=1747251321; bh=gGxsvbaLpLbY4YEKIzZtT vkCsNV8Kcy5G3wZLqjpHbg=; b=E9kjOc8f1wuwyZMe4dXA9yS0nQvLuOO0IvLxj PRY8INIhOqo13zEuuPxuwdcX0zdyIGmsw9tB7cE5kNLUcnmENAOffOfd1DTLPYVw 0hU7MCfh9zqu/qwAoz5ycdXo+jH9XyAMLU291T28V6T2mJ2mAi5ZZz6Bt6WCVKMB 7U86FjyTor3LD6DEm+0DUEjCLo34GyNllfcKWXJU05CLdzM+pG3t2LtHnBzuSaQZ vqsMM1h2VDS22c5TBB5NhlEVGqqG0fVikYWxLE1XD3G8Z39WMD2SDUqrXEm96LIW Ce7vEdlwgYVvg16ubMUeK9vsQJ4SxCvMQ1hZ4AatuShJDMWew== 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=1747164921; x=1747251321; bh=g GxsvbaLpLbY4YEKIzZtTvkCsNV8Kcy5G3wZLqjpHbg=; b=wgy6USOYmnk4pIbWk O4E9tzlJoSXouqnkJwsbBx9UaKy6r+XQpcTEphZMY+MEupMqnrRrpOqLkdAe7LKm oK0sVJMzLY1h/KRlHyeUVUueBWHjWKQixSXCQYlQ6s1GgT4rHG4zbarwpjozvlg3 HyvwbrMPDNOidaF4fRxnoE2ZShbyudMoDHxYVLvM16b61JL35B4z4FCkK/cizB1u zQDAUEZuUf09+eWfPOzvvzB31/v7tCFxn6OqeuarVOJj97hihrd3kCBdzXwQkKBi 0gruDAg+vqQrqq8QOlkmL4CyQW79KadcsWKUlpgz7erJiH7Trtd8ciNxJyPa8utm pE5YA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdegleeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtgfesthhqredtredt jeenucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrh hfihgvlhguthgvtghhrdgtohhmqeenucggtffrrghtthgvrhhnpeeugfetieejueevffdu lefhhfethfekvedtueevgfffvdefiedvtefgheevteelffenucffohhmrghinhepphhhph drnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnhgspghrtghpthhtohepud dpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishht shdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id DEB21B00069; Tue, 13 May 2025 15:35:20 -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: Tc85e59d11f973e2b Date: Tue, 13 May 2025 14:34:57 -0500 To: "php internals" Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] [Vote] Pipe operator Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Tue, May 13, 2025, at 1:41 PM, Levi Morrison wrote: > On Mon, May 12, 2025 at 8:00=E2=80=AFPM Larry Garfield wrote: >> >> I hereby open the vote on the Pipe operator RFC: >> >> https://wiki.php.net/rfc/pipe-operator-v3 >> >> The vote will run until 26 May. > > Hey, Larry, quick check: > >> Supporting pass-by-ref parameters in simple cases is quite easy, and >> a naive implementation would support it. However, passing a value >> from a compound value (an object property or array element) by >> reference does not work, and throws an =E2=80=9CArgument could not be= passed >> by reference=E2=80=9D error. In practice, it is easier to forbid pass= -by-ref >> parameters in pipe than to allow them. > > Is this a restriction that can be lifted in a future version? I agree > that it's unlikely to be useful, but if the `$temp =3D` chain version > supports it, then so too I would expect a pipeline to be able to > handle it. Lifting it on simple variables (strings, ints, etc.) is quite simple. I= t actually took effort (not much) to make those not work, so that could = just be undone in like 2 lines. References to compound variables, I don= 't know how to make work. It might be possible for someone with more en= gine-fu for me to figure that out, I don't know. But since IMO one shou= ldn't be using references in a pipe chain anyway, I didn't invest much t= ime in figuring out how to do so. --Larry Garfield