summaryrefslogtreecommitdiff
path: root/ext/standard/assert.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/assert.c')
-rw-r--r--ext/standard/assert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c
index c1fe4893d1..b6ea74abe2 100644
--- a/ext/standard/assert.c
+++ b/ext/standard/assert.c
@@ -145,7 +145,7 @@ PHP_FUNCTION(assert)
RETURN_TRUE;
}
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &assertion) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &assertion) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -250,7 +250,7 @@ PHP_FUNCTION(assert_options)
pval **what,**value;
int oldint;
char *oldstr;
- int ac = ARG_COUNT(ht);
+ int ac = ZEND_NUM_ARGS();
ASSERTLS_FETCH();
if (ac < 1 || ac > 2 || zend_get_parameters_ex(ac, &what, &value) == FAILURE) {