De traductores profesionales, empresas, páginas web y repositorios de traducción de libre uso.
as ht itself now contains the number of arguments that have been passed to the function, zend_num_args has been stripped down to a dummy macro (see its definition in zend_api.h).
since php doesn't have formal function definitions with support for call syntax checking, and since php features variable arguments, sometimes you need to find out with how many arguments your function has been called. you can use the zend_num_args macro in this case. in previous versions of php, this macro retrieved the number of arguments with which the function has been called based on the function's hash table entry, ht, which is passed in the internal_function_parameters list. as ht itself now contains the number of arguments that have been passed to the function, zend_num_args has been stripped down to a dummy macro (see its definition in zend_api.h). but it's still good practice to use it, to remain compatible with future changes in the call interface. note: the old php equivalent of this macro is arg_count.