Re: RE: [RFC] Fast Parameter Parsing API

From: Date: Mon, 26 May 2014 09:51:55 +0000
Subject: Re: RE: [RFC] Fast Parameter Parsing API
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-74493@lists.php.net to get a copy of this message
> Am 26.05.2014 um 11:42 schrieb "Andrea Faulds" <ajf@ajf.me>:
>> On 26 May 2014, at 10:39, Bob Weinand <bobwei9@hotmail.com> wrote:
>> ZEND_PARSE_PARAMETERS(ZP_ARRAY(input) ZP_LONG(offset) ZP_OPTIONAL ZP_ZVAL(z_length)
>> ZP_BOOL(preserve_keys), { return; })
>> (The return at the end is the error branch)
> 
> Why do you need { return; } at the end? Can’t you put that into the macro’s definition?
> 
> --
> Andrea Faulds
> http://ajf.me/

No. You might want to return false (it's maybe not a good idea to do so, but it would break BC
to remove that possibility)

Bob Weinand (iPhone)


Thread (52 messages)

« previous php.internals (#74493) next »