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: signature.asc
Description: OpenPGP digital signature

Reply via email to