Re: hasType() for internal function parameters?

From: Date: Mon, 22 Jun 2015 19:00:39 +0000
Subject: Re: hasType() for internal function parameters?
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-86789@lists.php.net to get a copy of this message
On Mon, Jun 22, 2015 at 8:35 PM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > 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. > In general, we can, if we remove corresponding code in zend_vm_def.h, and also some checks for ZEND_HAS_TYPE_INFO and internal functions in zend_compile.c. Thanks. Dmitry. > > -Rasmus > > >

« previous php.internals (#86789) next »