[EMAIL PROTECTED] wrote:
The optimizer already does most of those things, so I think things like that are best left there rather then being done in the core.

How exactly does the (by "the" I presume you mean "your") optimizer manage to turn $_POST['foo'] into a single CV based DIM fetch? The current get_ptr_ptr_cv semantics only pull from EG(active_symbol_table)...

Or do you mean that they turn:
ZEND_FETCH_R $0 'GLOBALS' (global)
ZEND_FETCH_DIM_R $1 $0 'foo'

Into:
ZEND_FETCH_R $1 'foo' (global)

And:
ZEND_BEGIN_SILENCE
ZEND_FETCH_R $0 'foo' (local)
ZEND_FETCH_DIM_R $1 $0 'bar'
ZEND_END_SILENCE

Into:
ZEND_BEGIN_SILENCE
ZEND_FETCH_DIM_R $1 !0 'bar'
ZEND_END_SILENCE

With !0 being a newly generated CV pointing at $foo

-Sara

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

Reply via email to