> Ok, the situation is somewhat clearer now.  But I think you're going in
> the wrong direction.  The underlying data structures may (and most likely
> will) change even between betas of ZE2, and these APIs may be altered
> too...  Other than the (obvious) lack of warm fuzzy feeling, wouldn't
> invoking the compiler using zend_eval_string() make more sense?  With
> smart strings or output buffering, creating this PHP snippet should be
> easy, and would give you the best results, don't you think..?

Hmm, to be honest I hadn't considered that. I'll have to give it some
thought, but I think that would work. It's not quite as efficient, but
it's definitely simpler and safer.

Thanks,
- Mark

> If you have a good reason not to go with it, I guess we could add them to
> the API with clear comments saying that they should really NOT be used by
> extensions...
>
> Zeev


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to