RFC karma

php.internals

Enrico Zimuel

6 years ago
Hi Internals, I'd like to propose an RFC for overriding internal and userland functions. The idea came while working on an Application Performance Monitoring (APM) agent for PHP, where I needed to intercept execution code to provide additional information such as execution time. I wrote an extension for that but I think this feature will be very helpful if present in the PHP core. Apart from APM needs, other use cases like Aspect Oriented Programming (AOP) such as Go! AOP PHP (https://github.com/goaop/framework) will benefit from it. My wiki account is ezimuel. Thanks! Best Regards, Enrico Zimuel

Nikita Popov

6 years ago
On Tue, Jun 9, 2020 at 9:17 AM Enrico Zimuel <e.zimuel@gmail.com> wrote:
> Hi Internals, > > I'd like to propose an RFC for overriding internal and userland functions. > > The idea came while working on an Application Performance Monitoring (APM) > agent for PHP, where I needed to intercept execution code to provide > additional information such as execution time. I wrote an extension for > that but I think this feature will be very helpful if present in the PHP > core. Apart from APM needs, other use cases like Aspect Oriented > Programming (AOP) such as Go! AOP PHP (https://github.com/goaop/framework) > will benefit from it. > > My wiki account is ezimuel. > > Thanks! > > Best Regards, > Enrico Zimuel >
You'll likely want to talk to Benjamin and Levi first (both CC'ed), who are also interested in improvements in this space. See also https://github.com/php/php-src/pull/5582. Nikita