Re: Re: [RFC-Discuss] Scalar Type Declarations v0.5

From: Date: Wed, 25 Feb 2015 16:06:03 +0000
Subject: Re: Re: [RFC-Discuss] Scalar Type Declarations v0.5
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-83806@lists.php.net to get a copy of this message
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

« previous php.internals (#83806) next »