# How can I let zend accept any parameters?

- Thread: https://externals.io/message/76585
- Original archive: https://news-web.php.net/php.internals/76585
- Started by Aaron Lewis on 2014-08-16T10:22:00+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #76585 — Aaron Lewis — 2014-08-16T10:22:00+00:00

URL: https://externals.io/message/76585#76585

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

-- 
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33

---

## #76586 — Pierre Joye — 2014-08-16T10:32:04+00:00

URL: https://externals.io/message/76585#76586 · In reply to: #76585

On Sat, Aug 16, 2014 at 12:22 PM, Aaron Lewis
<the.warl0ck.1989@gmail.com> 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
