Re: hasType() for internal function parameters?
| From: | Rasmus Lerdorf | Date: | Mon, 22 Jun 2015 17:35:58 +0000 |
| Subject: | Re: hasType() for internal function parameters? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86788@lists.php.net to get a copy of this message | ||
On 06/22/2015 01:27 PM, Dmitry Stogov wrote:
> Actually, when you added type hints, php compiler stopped optimizing and
> using ZEND_DEFINED (and others) instead of internal function calls, but
> of course this shouldn't change behavior. I'll need to take a look into
> difference.
Right, behaviour shouldn't change, but couldn't we also make it so that
arginfo for internal calls is only used by reflection? We can do all the
type checking we need right in ZPP as we do now. Let's just ignore
arginfo entirely for these calls.
-Rasmus
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc