mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Introduce ZEND_NUM_ARGS(), to replace ARG_COUNT(ht)
- Rename getParameters() and friends for consistency and namespace cleanliness
This commit is contained in:
parent
21e53485dd
commit
cd7d5546ae
4 changed files with 31 additions and 30 deletions
|
@ -35,7 +35,7 @@ static int module_count=0;
|
|||
HashTable list_destructors, module_registry;
|
||||
|
||||
/* this function doesn't check for too many parameters */
|
||||
ZEND_API int getParameters(int ht, int param_count,...)
|
||||
ZEND_API int zend_get_parameters(int ht, int param_count,...)
|
||||
{
|
||||
void **p;
|
||||
int arg_count;
|
||||
|
@ -75,7 +75,7 @@ ZEND_API int getParameters(int ht, int param_count,...)
|
|||
}
|
||||
|
||||
|
||||
ZEND_API int getParametersArray(int ht, int param_count, zval **argument_array)
|
||||
ZEND_API int zend_get_parameters_array(int ht, int param_count, zval **argument_array)
|
||||
{
|
||||
void **p;
|
||||
int arg_count;
|
||||
|
@ -115,7 +115,7 @@ ZEND_API int getParametersArray(int ht, int param_count, zval **argument_array)
|
|||
|
||||
/* Zend-optimized Extended functions */
|
||||
/* this function doesn't check for too many parameters */
|
||||
ZEND_API int getParametersEx(int param_count,...)
|
||||
ZEND_API int zend_get_parameters_ex(int param_count,...)
|
||||
{
|
||||
void **p;
|
||||
int arg_count;
|
||||
|
@ -141,7 +141,7 @@ ZEND_API int getParametersEx(int param_count,...)
|
|||
}
|
||||
|
||||
|
||||
ZEND_API int getParametersArrayEx(int param_count, zval ***argument_array)
|
||||
ZEND_API int zend_get_parameters_array_ex(int param_count, zval ***argument_array)
|
||||
{
|
||||
void **p;
|
||||
int arg_count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue