Re: [VOTE] Scalar Type Hints
| From: | Nikita Popov | Date: | Sun, 15 Feb 2015 19:43:23 +0000 |
| Subject: | Re: [VOTE] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82744@lists.php.net to get a copy of this message | ||
On Sun, Feb 15, 2015 at 8:18 PM, Dmitry Stogov <dmitry@zend.com> wrote:
> Currently we perform checks in RECV opcode handlers.
> Andrea's patch just adds a flag in zend_execute_data that tells what kind
> of checks should be performed in the function.
> With JIT it's difficult to generate any checks on call-site, because the
> actual function may by unknown at compile-time (and even may be changed on
> next request).
>
> Thanks. Dmitry.
>
Oh right sorry, I forgot that we do not know which function is going to be
called in many cases.
Nikita