diff options
Diffstat (limited to 'ext/standard/rand.c')
| -rw-r--r-- | ext/standard/rand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/rand.c b/ext/standard/rand.c index 73b81f922a..a1b490f3af 100644 --- a/ext/standard/rand.c +++ b/ext/standard/rand.c @@ -195,7 +195,7 @@ PHP_FUNCTION(srand) { pval **arg; - if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(arg); @@ -218,7 +218,7 @@ PHP_FUNCTION(mt_srand) pval **arg; BLS_FETCH(); - if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(arg); @@ -232,7 +232,7 @@ PHP_FUNCTION(rand) { pval **p_min=NULL, **p_max=NULL; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 0: break; case 2: @@ -300,7 +300,7 @@ PHP_FUNCTION(mt_rand) { pval **p_min=NULL, **p_max=NULL; - switch (ARG_COUNT(ht)) { + switch (ZEND_NUM_ARGS()) { case 0: break; case 2: |
