Re: [RFC] [Discussion] UUID
| From: | Fleshgrinder | Date: | Fri, 26 May 2017 09:57:35 +0000 |
| Subject: | Re: [RFC] [Discussion] UUID | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99199@lists.php.net to get a copy of this message | ||
On 5/26/2017 11:00 AM, Nikita Popov wrote:
> To clarify, I certainly do *not* want the behavior that was implemented
> here. The correct way (in your specific case) to handle this if by using
>
> if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "") == FAILURE) {
> return;
> }
>
> or adding a zend_parse_parameters_none_throw() API.
>
> Of course this should not throw a warning and of course it should not
> return NULL, because that would be inconsistent with how the other UUID
> methods behave. Of course it should not allow silently passing additional
> arguments, because that would be inconsistent with both how the other UUID
> methods (with at least one argument) behave and with how PHP in general
> behaves.
>
> Nikita
>
Thanks for the clarification. I changed the implementation to always
throw. This solves the issue for me. :)
--
Richard "Fleshgrinder" Fussenegger
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc