Re: Constant and expression ?
| From: | Johannes Schlüter | Date: | Wed, 09 Jun 2010 09:36:17 +0000 |
| Subject: | Re: Constant and expression ? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48697@lists.php.net to get a copy of this message | ||
On Wed, 2010-06-09 at 10:51 +0200, Frederic Hardy wrote:
> > See zval_update_constant_ex in zend_API.c as a starting point. While
> > such an approach would also require some parser work and some clever
> > idea where/how to store the expression to be evaluated etc.
> So, it's possible ?
> Very good news.
Everything is "possible". The question is how maintainable the solution
would be, how much of an performance impact it has etc. That I don't
know. It might turn out not to be acceptable. I just gave a starting
point in case somebody has the time needed for some experiments.
As always: Ideas, there are many. They need developers who have time and
motivation to do it.
johannes