Re: Mind if I hook the compiler?
| From: | Pierre Joye | Date: | Sun, 18 Jan 2015 07:36:41 +0000 |
| Subject: | Re: Mind if I hook the compiler? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80728@lists.php.net to get a copy of this message | ||
Hi,
On Jan 18, 2015 9:58 AM, "Sara Golemon" <pollita@php.net> wrote:
>
> https://github.com/php/php-src/pull/1004
>
> Wondering if anyone has an objection to me merging this. It just
> offers extensions a chance to alter the AST prior to bytecode
> emission. Mostly for evil things, but potentially for 3rd-party
> optimizers or whatevs. Does it need an RFC? The very minor
> indirection cost hides itself behind OpCache, so it should harm
> anything...
Good idea.
I think it was even planed when AST was introduced. You may check with
Nikita :)
Cheers,
Pierre