summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fbsql/php_fbsql.c2
-rw-r--r--ext/mbstring/mbstring.c2
-rw-r--r--ext/standard/array.c4
-rw-r--r--ext/standard/basic_functions.c2
-rw-r--r--ext/standard/file.c2
-rw-r--r--ext/standard/string.c2
-rw-r--r--sapi/apache/php_apache.c8
-rw-r--r--sapi/apache_hooks/php_apache.c26
8 files changed, 24 insertions, 24 deletions
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c
index 11786c7b30..bc1979dac5 100644
--- a/ext/fbsql/php_fbsql.c
+++ b/ext/fbsql/php_fbsql.c
@@ -2160,7 +2160,7 @@ PHP_FUNCTION(fbsql_errno)
Enable or disable FrontBase warnings */
PHP_FUNCTION(fbsql_warnings)
{
- int argc = ARG_COUNT(ht);
+ int argc = ZEND_NUM_ARGS();
zval **argv[1];
if ((argc < 0) || (argc > 1)) WRONG_PARAM_COUNT;
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index c76c24b85e..614d5bf884 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -1008,7 +1008,7 @@ PHP_FUNCTION(mb_http_input)
retname = 1;
if (ZEND_NUM_ARGS() == 0) {
result = MBSTRG(http_input_identify);
- } else if (ARG_COUNT(ht) == 1 && zend_get_parameters_ex(1, &arg1) != FAILURE) {
+ } else if (ZEND_NUM_ARGS() == 1 && zend_get_parameters_ex(1, &arg1) != FAILURE) {
convert_to_string_ex(arg1);
switch (*(Z_STRVAL_PP(arg1))) {
case 'G':
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 74f372e84f..3a91e5bcdf 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -2625,7 +2625,7 @@ static void php_array_intersect(INTERNAL_FUNCTION_PARAMETERS, int behavior)
Bucket ***lists, **list, ***ptrs, *p;
/* Get the argument count and check it */
- argc = ARG_COUNT(ht);
+ argc = ZEND_NUM_ARGS();
if (argc < 2) {
WRONG_PARAM_COUNT;
}
@@ -2773,7 +2773,7 @@ static void php_array_diff(INTERNAL_FUNCTION_PARAMETERS, int behavior)
Bucket ***lists, **list, ***ptrs, *p;
/* Get the argument count and check it */
- argc = ARG_COUNT(ht);
+ argc = ZEND_NUM_ARGS();
if (argc < 2) {
WRONG_PARAM_COUNT;
}
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index bac068e51d..0f4c4f65b1 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -2890,7 +2890,7 @@ PHP_FUNCTION(parse_ini_file)
zend_file_handle fh;
zend_ini_parser_cb_t ini_parser_cb;
- switch (ARG_COUNT(ht)) {
+ switch (ZEND_NUM_ARGS()) {
case 1:
if (zend_get_parameters_ex(1, &filename) == FAILURE) {
diff --git a/ext/standard/file.c b/ext/standard/file.c
index baacdc9129..e22656dfc2 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1233,7 +1233,7 @@ PHP_FUNCTION(pclose)
zval **arg1;
php_stream *stream;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 25206d93a5..47086485ee 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -3391,7 +3391,7 @@ PHP_FUNCTION(parse_str)
int argCount;
int old_rg;
- argCount = ARG_COUNT(ht);
+ argCount = ZEND_NUM_ARGS();
if (argCount < 1 || argCount > 2 || zend_get_parameters_ex(argCount, &arg, &arrayArg) == FAILURE) {
WRONG_PARAM_COUNT;
}
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c
index 59241a5fe8..fd3405dfa3 100644
--- a/sapi/apache/php_apache.c
+++ b/sapi/apache/php_apache.c
@@ -136,7 +136,7 @@ PHP_FUNCTION(apache_note)
{
pval **arg_name, **arg_val;
char *note_val;
- int arg_count = ARG_COUNT(ht);
+ int arg_count = ZEND_NUM_ARGS();
if (arg_count<1 || arg_count>2 ||
zend_get_parameters_ex(arg_count, &arg_name, &arg_val) ==FAILURE ) {
@@ -303,7 +303,7 @@ PHP_FUNCTION(virtual)
pval **filename;
request_rec *rr = NULL;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
@@ -410,7 +410,7 @@ PHP_FUNCTION(apache_lookup_uri)
pval **filename;
request_rec *rr=NULL;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
@@ -485,7 +485,7 @@ PHP_FUNCTION(apache_exec_uri)
request_rec *rr=NULL;
TSRMLS_FETCH();
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
diff --git a/sapi/apache_hooks/php_apache.c b/sapi/apache_hooks/php_apache.c
index aabb29835a..5ae3a36f60 100644
--- a/sapi/apache_hooks/php_apache.c
+++ b/sapi/apache_hooks/php_apache.c
@@ -1029,7 +1029,7 @@ PHP_FUNCTION(apache_request_send_error_response)
request_rec *r;
int rec;
- switch(ARG_COUNT(ht)) {
+ switch(ZEND_NUM_ARGS()) {
case 0:
rec = 0;
break;
@@ -1054,7 +1054,7 @@ PHP_FUNCTION(apache_request_set_content_length)
zval *id;
request_rec *r;
- if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &length) == FAILURE) {
+ if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &length) == FAILURE) {
WRONG_PARAM_COUNT;
}
APREQ_GET_REQUEST(id, r);
@@ -1091,7 +1091,7 @@ PHP_FUNCTION(apache_request_rputs)
zval *id;
request_rec *r;
- if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &buffer) == FAILURE) {
+ if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &buffer) == FAILURE) {
WRONG_PARAM_COUNT;
}
APREQ_GET_REQUEST(id, r);
@@ -1134,7 +1134,7 @@ PHP_FUNCTION(apache_request_log_error)
request_rec *r;
int facility = APLOG_ERR;
- switch(ARG_COUNT(ht)) {
+ switch(ZEND_NUM_ARGS()) {
case 1:
if(zend_get_parameters_ex(1, &z_errstr) == FAILURE) {
RETURN_FALSE;
@@ -1168,7 +1168,7 @@ PHP_FUNCTION(apache_request_sub_req_lookup_uri)
zval *id;
zval **file;
request_rec *r, *sub_r;
- if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
+ if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
APREQ_GET_REQUEST(id, r);
@@ -1191,7 +1191,7 @@ PHP_FUNCTION(apache_request_sub_req_lookup_file)
zval **file;
request_rec *r, *sub_r;
- if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
+ if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
APREQ_GET_REQUEST(id, r);
@@ -1214,7 +1214,7 @@ PHP_FUNCTION(apache_request_sub_req_method_uri)
zval **file, **method;
request_rec *r, *sub_r;
- if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &method, &file) == FAILURE) {
+ if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &method, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
APREQ_GET_REQUEST(id, r);
@@ -1253,7 +1253,7 @@ PHP_FUNCTION(apache_request_internal_redirect)
zval **new_uri;
request_rec *r;
- if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &new_uri) == FAILURE) {
+ if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &new_uri) == FAILURE) {
WRONG_PARAM_COUNT;
}
APREQ_GET_REQUEST(id, r);
@@ -1268,7 +1268,7 @@ PHP_FUNCTION(apache_request_send_header_field)
zval *id;
request_rec *r;
- if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &fieldname, &fieldval) == FAILURE) {
+ if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &fieldname, &fieldval) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(fieldname);
@@ -1547,7 +1547,7 @@ PHP_FUNCTION(apache_note)
{
zval **arg_name, **arg_val;
char *note_val;
- int arg_count = ARG_COUNT(ht);
+ int arg_count = ZEND_NUM_ARGS();
if (arg_count<1 || arg_count>2 ||
zend_get_parameters_ex(arg_count, &arg_name, &arg_val) ==FAILURE ) {
@@ -1714,7 +1714,7 @@ PHP_FUNCTION(virtual)
pval **filename;
request_rec *rr = NULL;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
@@ -1821,7 +1821,7 @@ PHP_FUNCTION(apache_lookup_uri)
pval **filename;
request_rec *rr=NULL;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
@@ -1896,7 +1896,7 @@ PHP_FUNCTION(apache_exec_uri)
request_rec *rr=NULL;
TSRMLS_FETCH();
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);