Dmitry,

> But checks are performed not in the caller but in RECV opcode at called
> function.
> And in this function we don't know id it's going to be called only in strict
> mode or in weak as well.

Currently, yes. However, by the time we enter ZEND_DO_FCALL, we know
which function we're going to call. And at compile time, we know how
many arguments exist.

We can also move the argument verification from RECV into
ZEND_DO_FCALL just like happens today with internal functions. In
fact, it may be worthwhile investigating that in general.

Anthony

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

Reply via email to