Re: [APC-DEV] Re: [PECL-CVS] cvs: pecl /apc apc_optimizer.c apc_optimizer.h
[email protected] (Ilia Alshanetsky) Fri, 8 Dec 2006 10:09:24 -0500
| Newsgroups | php.apc.dev |
|---|---|
| Message-ID | <[email protected]> |
I think the 2nd presents portability issues and to me looks like a much dirtier solution then then callback hook. On 8-Dec-06, at 2:06 AM, Gopal Vijayaraghavan wrote: > Brian Shire wrote: >> Let me know if you want me to work that up Gopal, seeing as I'm >> the complaining party. ;-). >> On Dec 7, 2006, at 2:16 PM, Ilia Alshanetsky wrote: >>> I see no issue with removing the files, just give a way to >>> provide a hook. Ideally something that gets passed the oparray >>> and TSRM bits. > > What do you say about > > typedef apc_optimize_function_t zend_op_array* (*f) > (zend_op_array* TSRM_DC); > > apc_register_optimizer(apc_optimize_function_t optimizer); Ilia Alshanetsky