Re: RE: [RFC] Fast Parameter Parsing API

From: Date: Mon, 26 May 2014 09:53:48 +0000
Subject: Re: RE: [RFC] Fast Parameter Parsing API
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-74495@lists.php.net to get a copy of this message
we may use some extended API, to allow to do it in very rare cases. Thanks. Dmitry. On Mon, May 26, 2014 at 1:51 PM, Bob Weinand <bobwei9@hotmail.com> wrote: > > 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)

« previous php.internals (#74495) next »