]> granicus.if.org Git - php/commitdiff
ARG_COUNT(ht) -> ZEND_NUM_ARGS().
authorIlia Alshanetsky <iliaa@php.net>
Tue, 21 Jan 2003 14:56:40 +0000 (14:56 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 21 Jan 2003 14:56:40 +0000 (14:56 +0000)
ext/fbsql/php_fbsql.c
ext/mbstring/mbstring.c
ext/standard/array.c
ext/standard/basic_functions.c
ext/standard/file.c
ext/standard/string.c
sapi/apache/php_apache.c
sapi/apache_hooks/php_apache.c

index 11786c7b30c507b4c130f6c736b5cfeffd302a10..bc1979dac5688caccb274708f3151c0730bd3cf1 100644 (file)
@@ -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;
index c76c24b85e5867abe39f77adde6e23fafaf06fef..614d5bf884049e60856830d6f013a2d55c4deaf4 100644 (file)
@@ -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':
index 74f372e84fe6dbf3a280c058cdda2dcb1954603f..3a91e5bcdfeb3ea19eb10efaa9db8a0a1b06b825 100644 (file)
@@ -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;
        }
index bac068e51d36d754d14b3fc7631b69c85fcff2e7..0f4c4f65b14de713bb44aa828ec47f314b3c706b 100644 (file)
@@ -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) {
index baacdc91292f2efb54de1dbc33679fb817e82a80..e22656dfc2828a608e1411ef1854e40370f58024 100644 (file)
@@ -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;
        }
 
index 25206d93a555758072a545da91b69cb5eafedc9a..47086485ee3e7da799e51030d95eb64c21284305 100644 (file)
@@ -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;
        }
index 59241a5fe8f749ab6a8b2135deda6c6a3403c186..fd3405dfa3fac434deb9720232c77e21d8ed06e4 100644 (file)
@@ -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);
index aabb29835a32578e09cf15bff99b286d2b9ea031..5ae3a36f6043ed823ebc8d2ac560c26ffd2cf03c 100644 (file)
@@ -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);