Re: RE: [RFC] Fast Parameter Parsing API

From: Date: Mon, 26 May 2014 09:50:54 +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-74494@lists.php.net to get a copy of this message
Bob proved that his solution and syntax may work. If people think it's better, we may adopt RFC. As you see we don't have complete agreement even between two authors :) Of course we will take the best (e.g. return removing and compile-time type checking) from existing proposal as well. The existing patch might be changed quite easy to support a bit different syntax. Thanks. Dmitry. On Mon, May 26, 2014 at 1:41 PM, Andrea Faulds <ajf@ajf.me> wrote: > > 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/ > > > > >

« previous php.internals (#74494) next »