Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130367 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 3D84A1A00BC for ; Mon, 16 Mar 2026 16:56:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773680173; bh=62pcpkylE5rx9aAoNpROzFLvmb3WPMG/Yr91+OplklM=; h=Date:From:To:In-Reply-To:References:Subject:From; b=Y+RzFxVhZS2KUUnehuePFRJjfM7YiulBmIqYAxjSnLVwE35o9aJsEVXIH8D74ckpF YVfoTMFQaOru7fUUHUqjC3vPIkUlv7gxdtcewrs3fNiWTT31i/rjcP05iG6THPe8ua Ng127bXF5TFET4u6XkB+y3NR+RDxS3SNBB73OJv3nHm1BwgzNkr0ClhHMAM+Ltowb0 Qkyjgy6g1br06y8V/w9LgqblficCFJo/h+qdSo5+zPiShLv4wqY0mJR4AqnFMDb+qx rVpsYO1hBxOws546yWUXu3OsyQAurQFWEUrRtrZYSe6J5miGaUuCWrFJGof1Sgt2M6 KDrDB+1y29KQA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 05E6A1805CB for ; Mon, 16 Mar 2026 16:56:10 +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=-0.1 required=5.0 tests=BAYES_50,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.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) (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, 16 Mar 2026 16:56:09 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 4880EEC0B2E for ; Mon, 16 Mar 2026 12:56:04 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Mon, 16 Mar 2026 12:56:04 -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=1773680164; x=1773766564; bh=bxJYd3m7hkO4EL4QBTQyo p3uCKSPZ3E33fa3dSzu6lg=; b=EAqeyyG4i6pLjk5C/HmJMjJumJrMILCV82Zw7 Qw2lbe+nrbtU7/Pt3EL77qJQx7J5dwA/Ztnsu2mmD/tJrUpUpdfFN9gAvO4cXY/s 2wjKrNFPk+hhzYbuGGHI+X5hox7bYC9JO4BEWYvP1UZ8xq3nSkgAHYtUOFXGVuVs IuTrEQKP/XT8JuYwz2JccV9HhlXRMRLpGKNyEaObczHjyjWI9qDEd7djSE7PSlyK 7ZWVWDhDOcZv0Wf/LepWI1MFoph0rOdE985yDjWGm2kRO4pSVByzFtfSEUJDZjjM 2dJlm10jF+imTT8Kbo9RevrkytA6C3FGlnwr799cVPo4bvoOA== 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=1773680164; x=1773766564; bh=b xJYd3m7hkO4EL4QBTQyop3uCKSPZ3E33fa3dSzu6lg=; b=QDCE7whBANx5RRKca TzoGQckBUTJ/cnOOVw/rynSc1h5KZwELQ5PXW4bGwzMoB9nNZUHFydPCtedjM8Ps rEsJvBQfMcbhp4Sb42amIodZ2IRljJPE9cVMFhd/AGctgoBgvyt1izcjzEf5jhT4 ArLl3bf+Zek7CAD+esSQ+6H9W+7TVIe/ub+jAeF/THplCTUWSqakLoc90/7o3OyV MIbfAwprj8MUrLcjN0/nLNIPaJzJYpz2mC6kOG7ecCTDWhn0yyjIDfxIydRfmhQr JJLL6zTI0kdKWuctSC6I+oRTo9f1Abp0cQ5fIap0ii7yRnU3DlDmDLV5wWXU/ztB qEOCQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvleekledvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeffieeivdfhvdeguddttdegteeiueegvefhteehfeeffeet udeitdehtdegjeeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnhgspghrtghp thhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsh eslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id F265770006A; Mon, 16 Mar 2026 12:56:03 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AoO9V6XnWNuZ Date: Mon, 16 Mar 2026 11:55:42 -0500 To: "php internals" Message-ID: <6c1fed72-7890-466d-8b2a-4bef608f8558@app.fastmail.com> In-Reply-To: <4562f90e687f719a18cacb43cae0db33@bastelstu.be> References: <5bec7fdd-e2d0-47ab-92d0-ead8eade21e6@bastelstu.be> <0fdf66b9-2027-444b-bee5-01bed296e3c9@app.fastmail.com> <58700a4c-7d1b-4e4b-b6f9-adc5843b0206@bastelstu.be> <98259e0e-22e6-48ca-b520-b91ae8072e11@app.fastmail.com> <4562f90e687f719a18cacb43cae0db33@bastelstu.be> Subject: Re: [PHP-DEV] [RFC] enum SortDirection Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Mon, Mar 16, 2026, at 10:48 AM, Tim D=C3=BCsterhus wrote: > Hi > > Am 2026-03-13 19:11, schrieb Larry Garfield: >> Otherwise, there's no real advantage to putting it in core rather tha= n=20 >> FIG. The reason to put it in core is so it can be used in core. So=20 >> let's use it in core, even if not the full scope of eventual usage. > > I believe the RFC is sufficiently clear in how the enum can be useful=20 > for the PHP stdlib, listing some examples as future scope. And even if=20 > there would not (yet) be anything in the stdlib that could make use of=20 > it, I believe that asking users to install third party libraries with=20 > vendor-namespaces for a *data type* that is so broadly useful that it=20 > will likely be (transitively) required by every major framework is=20 > providing a good developer experience. > > Best regards > Tim D=C3=BCsterhus To be clear, I'm not suggesting that FIG would be a better place for it.= I am only saying that "let's add this... and then maybe later we'll ge= t around to quietly using it without another RFC" is a poor message and = poor expectation setting. When will I be able to use it for core functi= ons? Which functions? How will I even know? What's the plan here othe= r than "we can do that later quietly without telling anyone" (because va= nishingly few PHP devs look at Internals PRs that have no RFC)? That's = what is missing. --Larry Garfield