Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-18 Thread Mike Schinkel
> On Aug 18, 2024, at 4:59 AM, Rowan Tommins [IMSoP] > wrote: > > On 18 August 2024 05:46:09 BST, Mike Schinkel wrote: >> I know that those functions can be called as a function and return a value >> like the following: >> >> $return_value = include($path); > > You are right that it has a re

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-18 Thread Rob Landers
On Sun, Aug 18, 2024, at 11:36, Stephen Reay wrote: > > Hi Rob, > >> On 18 Aug 2024, at 04:33, Rob Landers wrote: >> >> I wouldn't consider it a BC break, no. But (ironically?), Symfony crashes >> with this change. > > > I wasn't aware of that specific code before but it's exactly the type o

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-18 Thread Stephen Reay
Hi Rob, > On 18 Aug 2024, at 04:33, Rob Landers wrote: > > I wouldn't consider it a BC break, no. But (ironically?), Symfony crashes > with this change. I wasn't aware of that specific code before but it's exactly the type of issue I was talking about earlier. > Ah, good catch. I've update

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-18 Thread Rowan Tommins [IMSoP]
On 18 August 2024 05:46:09 BST, Mike Schinkel wrote: >I know that those functions can be called as a function and return a value >like the following: > >$return_value = include($path); You are right that it has a return value, but wrong to put its argument in parentheses. This will *not* do

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-18 Thread Aleksander Machniak
On 15.08.2024 03:51, Juliette Reinders Folmer wrote: Should a `get_declared_enums()` function be added ? Yes And should the `get_declared_classes()` function be adjusted to exclude enums ? and Yes. I'd like to see an RFC with these two questions. -- Aleksander Machniak Kolab Groupware Dev