RE: Re: [PHP-DEV] constant folding optimization

2007-09-10 Thread Dmitry Stogov
EMAIL PROTECTED] > Subject: Re: Re: [PHP-DEV] constant folding optimization > > > >> I made a patch to implement constant folding optimization in the > >> Zend engine. > >> The patch is available at: > >> http://web.ist.utl.pt/nuno.lopes/zend_constan

Re: Re: [PHP-DEV] constant folding optimization

2007-09-09 Thread Nuno Lopes
Well we don't support that syntax at this moment. If you are saying that we could add support for such syntax.. it does seem a good idea, but in that case we would need to modify a few rules of the grammar (like adding a const_expr production, and allow static_scalar derive it, etc..). Ri

Re: Re: [PHP-DEV] constant folding optimization

2007-09-08 Thread Nuno Lopes
I made a patch to implement constant folding optimization in the Zend engine. The patch is available at: http://web.ist.utl.pt/nuno.lopes/zend_constant_folding.txt I like the idea a lot, however I think this patch has one significant downside - as far as I understand, it doesn't enable co