Re: Should there be a `get_declared_enums()` function ?
| From: | Christoph M. Becker | Date: | Fri, 16 Aug 2024 15:45:11 +0000 |
| Subject: | Re: Should there be a `get_declared_enums()` function ? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124982@lists.php.net to get a copy of this message | ||
On 16.08.2024 at 17:01, Ayesh Karunaratne wrote:
>> Porting this to C is left as an excercise for the reader. ;) Hint:
>>
>> <https://github.com/php/php-src/blob/8853cf3ae950a1658054f286117bc8f77f724f00/Zend/zend_builtin_functions.c#L1371-L1399>
>
> I went ahead and created PR
> https://github.com/php/php-src/pull/15443
> along with tests, UPGRADE notice, etc.
Thank you very much!
> I think having a
get_declared_enums function will be helpful.
> The
> implementation is simple and straightforward too.
I concur.
Christoph