Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126286 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 qa.php.net (Postfix) with ESMTPS id 56EC21A00BC for ; Tue, 4 Feb 2025 20:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738702053; bh=UxU23UhkzQ0hvswcFnxMCXk+jzO7FhenaO6ZKnVqL8Y=; h=Date:From:To:In-Reply-To:References:Subject:From; b=QNQD7CW6qiqGZwH07RTUHBVKofK91WOQSh78a0LmeNYeLw4hT0qBSxQL6yopUPGrY sKPQ9K6faJgjHB3eUQLILtEX+XDnt9h6uyQP1t25SY6ML76X4UaW3xQsiMdS/SbXz4 OBwfRNbreH7HnBdT+MfVfRIl5SziejUWyMjBNjOFX8Ohufxi1MBkXCHEhs/eSgGDNk va7+d2tdDZWIIB9hYVP1qiA0nUr8zXrGzdDJzvLcdzWt5K4JZNkgdh+L39SkP7NA55 oNj2bGp9x14PhgMyNS0BiHbaeI/sSYyrTapPyFtVxiYroAwdNJftrJ6fnaal1abbRb wDf008uTJZMgg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 33D85180048 for ; Tue, 4 Feb 2025 20:47:32 +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=-0.1 required=5.0 tests=BAYES_50,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.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a1-smtp.messagingengine.com (fout-a1-smtp.messagingengine.com [103.168.172.144]) (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, 4 Feb 2025 20:47:30 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 6A09613801DC for ; Tue, 4 Feb 2025 15:50:16 -0500 (EST) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-01.internal (MEProxy); Tue, 04 Feb 2025 15:50:16 -0500 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=1738702216; x=1738788616; bh=IaZsjr9U10R9ZnQCg1nyS qxE5Jz7X+FvQxGRu6X89ok=; b=FA0nzWCMCzhwKDjM0RWWFflqftNhv6noXvDV4 Te1O1aLwNx0IQOP46kREw/D5o+O0lUe9CALpbnlxBIcnoGMMwZiKhsQW9cfXGD/a ljAysQMd3BIEAz1iogUdiTHeElcZIcabjanNIqcaPOnHYfa8L6ZprxqWqzChWFp2 YjiMiAF8jC9RSBW2Ml+fhWJn2Uadm6HioS05O/oZQxWIRLxO86IqnuLpzHIjGbZG Y+B0Y0cfdcko87PxukHP5Hv49nakIhmgrjR5gExbfwxkZ64Z051whOC3imLMXJ2T +LVPtXCS9nEWOtAiyudSFgJso8iIYtQLVAjLj4yegrzcBXtXw== 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=1738702216; x=1738788616; bh=I aZsjr9U10R9ZnQCg1nySqxE5Jz7X+FvQxGRu6X89ok=; b=DRnIV2RHqZZe/OiVp 5MRrhTXrteOs3Hf/NiRBbpXlAk9724KRjk4jHGHp7ANFy10Spdwc4cZxRibm73Pg iBtU7YOd6QC/l6+C3sIHGq9v3wXQPa9mdzyb2dgCK1Z2ZATPROFPW6cp5voRtYdm UFTtm9QbDUfhDU9TRjLVMspX4CqYqZfdBPvkJaa2GqugtMzxxXFBr9N75fZ62rzL kZ3Wgu/empTkp/LSvJKBPg8gCFc9qw85L9le60fBGX4mVd8ZlaLtN2o07DNC9wHn sKlK5AHnNs+xJC6XWURQX/jRVGgfjicWT8qu/w3FCZH8CVBuMOfZfSPxJndkUPyG QlDWg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvudehgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfh hivghlughtvggthhdrtghomheqnecuggftrfgrthhtvghrnhepfeefffdvkeffveeguedt gfevfedugedugeejueetteeghfejieffjefhgefftdehnecuffhomhgrihhnpehphhhprd hnvghtpdgvgihtvghrnhgrlhhsrdhiohdpghhithhhuhgsrdgtohhmnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfih gvlhguthgvtghhrdgtohhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 989CD29C006F; Tue, 4 Feb 2025 15:50:15 -0500 (EST) 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 Date: Tue, 04 Feb 2025 14:49:55 -0600 To: "php internals" Message-ID: <808f6c7a-369e-40af-8fe5-9f14317be756@app.fastmail.com> In-Reply-To: <99F2F71B-8BBA-449B-9FB4-54B1B608BB0A@gmail.com> References: <2A357F88-BAF4-41DE-8646-6BBBF4EFF6F6@gmail.com> <99F2F71B-8BBA-449B-9FB4-54B1B608BB0A@gmail.com> Subject: Re: [PHP-DEV] Empty subject in match and switch constructions Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Tue, Feb 4, 2025, at 1:43 AM, Dmitry Derepko wrote: > Hi, Larry! > >> On Feb 3, 2025, at 10:01=E2=80=AFAM, Larry Garfield wrote: >>=20 >> On Sun, Feb 2, 2025, at 7:40 AM, Ilija Tovilo wrote: >>> Hi Dmitrii >>>=20 >>> On Sun, Feb 2, 2025 at 1:05=E2=80=AFPM Dmitry Derepko wrote: >>>=20 >>> https://wiki.php.net/rfc/short-match >>> https://externals.io/message/112496 >>=20 >> Hi, author of that RFC here. Although there seemed to be interest fo= r it in the initial match() discussion, the stand-alone follow up was me= t with a giant "meh", which is why I didn't pursue it further. I would = still be in favor of it, though, if it could get through internals. I'm= happy to have someone pick it up and run with it, or collaborate on reb= ooting that RFC. (I'm pretty sure the patch for it actually worked, at = least it did at the time.) >>=20 >> --Larry Garfield > > It looks funny that I=E2=80=99m following in your steps with the RFC=E2= =80=99s didn=E2=80=99t=20 > go through =F0=9F=98=83 > > By the way, I=E2=80=99ve implemented empty match subject in a bit diff= erent=20 > way: https://github.com/php/php-src/pull/17692 I have no particular preference here; whichever approach Ilija thinks is= better is what we should go with. (Feel free to steal the AST printer = parts from my PR if we end up going with your PR.) > About the RFC. What=E2=80=99s the way to re-activate it?=20 > Will you re-activate it? > Do I need to create a new one referencing to this one? > Can you share rights to edit the RFC and we can push it further togeth= er? Procedurally, since it was never voted on, I believe we can just move it= back to "in discussion" on the wiki, start a new official discussion th= read, and go to town. I'm fine with doing that if everyone else is. An= d of course add your name to it as well (and anyone else that contribute= s). The main question is whether there's enough interest to justify taking i= t to a vote. Would anyone actually vote Yes for this? :-) Feature-wise, I have to say I'd keep it strict-always, as both our PRs i= mplement it. Yes, that means preg_match() wouldn't be able to slot in t= ransparently. I'm frankly OK with that; hopefully pattern matching can = be extended to a better regex syntax anyway in the future. --Larry Garfield