Re: [PHP-DEV] How can I let zend accept any parameters?

[email protected] (Pierre Joye)
Newsgroups php.internals
Message-ID <CAEZPtU6-6P5aXV_kZWxM5n8fzrqW6Fcp387=AUMprYpXKgZWEg@mail.gmail.com>
On Sat, Aug 16, 2014 at 12:22 PM, Aaron Lewis
<[email protected]> wrote:
> What should I use in "zend_parse_parameters" so that it can support
> arguments like this:
>
> 1. object, string
> 2. null, string
>
> I'm not sure what represents "null" here

in this case you have to accept a zval and do the check yourself. null
could be supported for any parameter but the 1st one as optional
parameter.

Full doc can be found here:

https://github.com/php/php-src/blob/master/README.PARAMETER_PARSING_API



-- 
Pierre

@pierrejoye | http://www.libgd.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.