Re: Re: Allowing is_* functions to accept multiple parameters

From: Date: Wed, 18 Sep 2013 20:05:21 +0000
Subject: Re: Re: Allowing is_* functions to accept multiple parameters
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Am 18.09.2013 um 21:57 schrieb "Leigh" <[email protected]>:
> On 18 September 2013 18:50, Bob Weinand <[email protected]> wrote:
>> At least, from a technical point, evaluating LTR would require to change the engine
>> (would be some more complex change as it would require to switch between contexts
>> and being able to execute the ZEND_SEND_VAL opcodes one by one
> 
> Feels like you're overthinking it?
> 
> Plan was to allow any is_* function to be called as normal (SEND_VAR,
> SEND_VAR ... FCALL), then iterate over the supplied arguments inside
> the function and return false at the first failure, emulating the
> boolean short circuit.

Well, the arguments are executed at the moment where the ZEND_SEND_VAR op is encountered. But this
you already can do with the one liner in my last mail..

So LTR support is basically not worth it here (too many change/too much cost for this).

Bob Weinand


Thread (19 messages)

« previous php.internals (#69215) next »