Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130309 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 4B1DB1A00BC for ; Fri, 13 Mar 2026 18:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773425519; bh=ohDez7ebF0UJfaZBdL7zWpDcZ0W8MmR11BTQ0huMT0s=; h=Date:From:To:In-Reply-To:References:Subject:From; b=fgQEWJvcbhRZ3v3yRv6usY6Cu1Kd0FJ5vbWyowd1BsBlEqvLN2KprUnQMxmCb0wvN clM1fCAWxY7N7McZ0+7rvP9/9gnXwd0N2531COsySdnEB2wZYfHhl9pADAI3LXlg1p w2QiqWBa/2VNJncOE9fhIi84r9GBs1yxMW5NT0mEPMhXLemR7AMvF2HYQQcv9g7oZy ULNMdr5s05JhS6HQGh2FmTOSnodByTA2tyF4aHJ8o5WGGDTzf/y9xt7C06i0biwJl/ b7/RrFOPGVXwwQogoliBnIAA38NokMWJVgqGoSVy4WaCllmF2Fy194AkbPbl13Ln2N 1HX6/IRwzAeEQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 079331801D4 for ; Fri, 13 Mar 2026 18:11:59 +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, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No 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) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 13 Mar 2026 18:11:58 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id C50201D00124 for ; Fri, 13 Mar 2026 14:11:52 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Fri, 13 Mar 2026 14:11:52 -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=1773425512; x=1773511912; bh=Fq3uuM8hBViYOVsXcABJ+ 5JbpMeY4oWqi1m6mZ8dgto=; b=sUszCrxmG3eh7M7Jz6pa7R1U0KTVWq39B3Fe0 RzkKG32I8r84cQfkZLtfYAMjeD/YFT85+yFqwo8HklbVXD0IQ266emaXwr60DW9u kSLojSv+aIBeD8fwLJOFhEdr0bOMd2VKAK6BUbrGvFxVMtp4WlC2fkgBjcwRCQ9q G3waryf9XUkXuG0hyFV/7kWWlBYBmISfAsnn/4fqAKWaS665gZYgD3Z3C+Zsx/H5 /UstztBld4+EyMhi7IA6zp9I4Xc0Qt5ZXpLRvChI1GWVJtfFK8NjRU54Gc6yqZ2g QvRAj72o1POEXC9v0W3PEqVU9ojoXtIZfyNyRD5SwcTqKN2VQ== 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=1773425512; x=1773511912; bh=F q3uuM8hBViYOVsXcABJ+5JbpMeY4oWqi1m6mZ8dgto=; b=LuyXDdJQkpBLbiSlb Yifa8DQTb998yYOornWZdzGynta4FGEQY8WmwsuzhmipTor5VNdTgq4qPhpTCHVZ Qj8u/Ju/gcOiiIbEi4G1rSDXRAFmTKptzI4Zh23UL5PVv26Y7LJalRRBO4ZHQITn OV8DDMswd4ybs6uiK1KTpJpVfMN52Keg6iAIvDXxRaE//BVWrSLGu6I4G1T6XuPb TB7h4RjtG8MHP4OiZaXWGXWhaMpmhiKCRlxepEvN1XE4g6We4Zx6v6/owgY7zfoM 35QM6v/GyhWVWwewAbtvJZusp/rh+WowboL2PVFPh1l//smtTnWe1kSOwdozyXqS h+mEA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvledtfeehucetufdoteggodetrf 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 231DE700065; Fri, 13 Mar 2026 14:11:52 -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: Fri, 13 Mar 2026 13:11:31 -0500 To: "php internals" Message-ID: <98259e0e-22e6-48ca-b520-b91ae8072e11@app.fastmail.com> In-Reply-To: <58700a4c-7d1b-4e4b-b6f9-adc5843b0206@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> 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 Tue, Mar 3, 2026, at 2:50 PM, Tim D=C3=BCsterhus wrote: > Hi > > On 3/3/26 01:36, Larry Garfield wrote: >> I concur. I'd like to see the functions updated now in the RFC, so w= e get a sense of how many functions will be impacted. Not because I'm c= oncerned about a widened type breaking anything, but more so readers can= see the value this brings. > > I see the main value in helping userland not to reinvent the wheel eve= ry=20 > time and to set some further precedent in including types for this kin= d=20 > of ubiquitous concept in the standard library. > > I don't want to commit to supporting the enum for every possible=20 > function in the standard library for the reasons I mentioned in my rep= ly=20 > to Bob and also because some of the functions already have a very mess= y=20 > API signature where backfitting the enum is not exactly trivial. I'm not suggesting we update every single function in one RFC shot. But= the RFC should include updating at least one or two so that the Enum is= actually used. Otherwise, there's no real advantage to putting it in core rather than F= IG. The reason to put it in core is so it can be used in core. So let'= s use it in core, even if not the full scope of eventual usage. --Larry Garfield