Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125027 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 56E891A00BD for ; Sat, 17 Aug 2024 13:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723900783; bh=GiWtGOt79pP8Q/MOfCuBKiC+5p7OXtNexI7PGM6VR7M=; h=Date:From:To:In-Reply-To:References:Subject:From; b=CShmBoR/iyhbTNctX+hZ+7SYAtT6g9ehmBRCkTYwcLDe1tksXgUak8tgNhNyrnvuy fDJXJ6YfeSrfuSz00AcOMpVbfNV0I959wCgigbdUCDgYmJ2qFqaewRh9hQPGz5j6U4 aNHyGD2qv/9XdqurfOVoqGE/BnT/q5QqXz16Cj+z+Iqn0fGQDe4M0zavppzlx69/hC 8R5pKU2m1djdcNK4u7oA1L0etWFibOvfZPHevZMCfmcTaQiv+z295B4VwcwSCktsWE BFyBahG1ilXqzPC3stZnVpzZUE9iqxg14ygoSEW5/cI8l9wGeR54hOfMMfFNC/uOmx bJDFaqWpIddXw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D838E180055 for ; Sat, 17 Aug 2024 13:19:42 +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 fhigh3-smtp.messagingengine.com (fhigh3-smtp.messagingengine.com [103.168.172.154]) (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 ; Sat, 17 Aug 2024 13:19:42 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 3A0231150874 for ; Sat, 17 Aug 2024 09:17:54 -0400 (EDT) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-03.internal (MEProxy); Sat, 17 Aug 2024 09:17:54 -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=1723900674; x=1723987074; bh=obgHJcWnltLHTGlVj7Sxt gkJkQaHGJXy3YVecoVCZtQ=; b=PJWH9nEatKdvKAzz+Ds14A/tdJ1wfoX2rkQ3a ZCyRJ13NgOB4Ilhl56tfwE4ezvHXZRcTPAKTEVTEJEEtTx5aI5FYEQ6nuoPeJTQX 0sTFiMEaph/8b4zI30LplsV07rqCR0e/gQL87yuSCsohOAn6eq4ZwWPgf2sqa3q6 fLeQkKwKbpUO/4r9YKZXqN2dDdkMOMnq7tIBfAkAZpL7dNhmSQKCkMS2MLPa6J1s nW/RePSmd5XTFyo0V9fk5Ll/9UO4ksMRUADsmNqxw58H9+WS70WocGMW3uPdblHf ATMTgmDMY02z+885FYaj8ST/XZP/WijYFdsMOyQuCXcxY2LCw== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1723900674; x= 1723987074; bh=obgHJcWnltLHTGlVj7SxtgkJkQaHGJXy3YVecoVCZtQ=; b=M H0Wu2lhf36jo8+TdzcMdtJ8pqcUe6u4PQoWvOCeEM9supJSpBFxyQoLh+n/rMg7p P3vnAwka3Nnzzcx3EQ56X7oz7a4OpYY+HRBOLU5Xa2mlHxpJojOA/5DenQPOzBPD TiewvQb38J2Wl1aYUfdliDiTlFeSWhr8uRvYcMXZDvcDnVK7hyy0iNjPFVSnCPG9 1V5EcPn71313ThibGXptW7Ln4N6n3UJhyxFrELqbJ+ltKaEIteTVKwOIQWQ1Ueyd HYbv4Bvn3FD4j+TA5GzZp/ao/MSINmOvq0Awihi81FzUeYl97+PMo5hueSqo2sr/ 3QewFMin3WAfggY9Otu6Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddutddgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtgfesthejredtredttden ucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfih gvlhguthgvtghhrdgtohhmqeenucggtffrrghtthgvrhhnpeeuheejudelteelieehleel leekvddtgfettdeghffggeehvdejgeejfeffuefhvdenucffohhmrghinhepghhithhhuh gsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmpdhnsggprhgtphhtthhope dupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhs thhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id F3AEA940060; Sat, 17 Aug 2024 09:17:53 -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 Date: Sat, 17 Aug 2024 08:17:32 -0500 To: "php internals" Message-ID: In-Reply-To: <66BFF486.3020707@adviesenzo.nl> References: <66BD5F05.8010409@adviesenzo.nl> <8dc51539-20bb-4017-b859-76066e2287e5@gmx.de> <66BFF486.3020707@adviesenzo.nl> Subject: Re: [PHP-DEV] Should there be a `get_declared_enums()` function ? Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Fri, Aug 16, 2024, at 7:53 PM, Juliette Reinders Folmer wrote: > On 16-8-2024 17:01, Ayesh Karunaratne wrote: >> I went ahead and created PR https://github.com/php/php-src/pull/15443 along with tests, UPGRADE notice, etc. I think having a `get_declared_enums` function will be helpful. The implementation is simple and straightforward too. > Thanks for creating the PR Ayesh! > > I'm presuming it's too late for PHP 8.4, what with feature freeze > having come & gone this week. > > Based on the mostly supportive responses on the list, I wonder whether > an RFC is needed. If so, I'd be happy to create an initial draft (for > PHP 8.5). > > Smile, > Juliette I would prefer to have an RFC for this, even if it's short. I'm not against it, I just think there's enough non-trivial questions (eg, impact on get_declared_classes()) that it warrants an RFC process/discussion. --Larry Garfield