[PHP-DEV] Re: [RFC] Allow calls to global functions in constant expressions

2020-02-14 Thread tyson andre
> - Solving the above two issues while continuing to throw for func_get_args(), > get_defined_vars(), etc. >   get_defined_vars() would throw for dynamic calls Then again, it's already possible to get function parameters through debug_backtrace(), so implicitly creating a closure and call with 0

[PHP-DEV] Re: [RFC] Allow calls to global functions in constant expressions

2020-02-14 Thread tyson andre
Hi internals, https://wiki.php.net/rfc/calls_in_constant_expressions has hit some roadblocks in the implementation shortly after the last email. I've been blocked on how to resolve them in the implementation in a way I'm certain would work. I had assumed the calling scope wouldn't have the below