Re: zend_parse_parameters() improvements
| From: | Nikita Popov | Date: | Thu, 19 Jul 2012 21:33:04 +0000 |
| Subject: | Re: zend_parse_parameters() improvements | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61519@lists.php.net to get a copy of this message | ||
On Thu, Jul 19, 2012 at 11:23 PM, Sara Golemon <pollita@php.net> wrote:
> Then I'm not sure what problem you're trying to solve either. :/
This solves two problems:
a) Integer parameters cannot currently be skipped using NULL. This
issue comes up every now and then. E.g. see
https://github.com/php/php-src/pull/133.
b) If you need more complex argument handling you currently have to
fetch the value as z and then use some convert_to_* function. But
those convert_to_* functions behave differently than zpp. So a
function for parsing a single parameter is exposed too.
Nikita