Re: [PHP-DEV] Adding new `ReflectionConstant::getFileName()`

2024-09-17 Thread Gina P. Banyard
On Monday, 16 September 2024 at 20:00, Daniel Scherzer wrote: > Dear Internals, > > Last week I sent a patch[1] to address a feature request[2] for a way to > identify at runtime what file a constant was declared in. Since this adds the > filename (a `zend_string`) to every `zend_constant` ins

[PHP-DEV] Adding new `ReflectionConstant::getFileName()`

2024-09-16 Thread Daniel Scherzer
Dear Internals, Last week I sent a patch[1] to address a feature request[2] for a way to identify at runtime what file a constant was declared in. Since this adds the filename (a `zend_string`) to every `zend_constant` instance, it is not the most trivial of changes. It was suggested[3] by iluuu1