]> granicus.if.org Git - php/commitdiff
MFH: Fix double "wron param count" messages
authorHannes Magnusson <bjori@php.net>
Fri, 3 Nov 2006 14:46:48 +0000 (14:46 +0000)
committerHannes Magnusson <bjori@php.net>
Fri, 3 Nov 2006 14:46:48 +0000 (14:46 +0000)
ext/bcmath/bcmath.c
ext/dba/dba.c
ext/mhash/mhash.c
ext/session/session.c
ext/shmop/shmop.c
ext/standard/basic_functions.c
ext/tidy/tidy.c
ext/xmlwriter/php_xmlwriter.c

index 05bfb06642ef6644373e26d23167f8767a1a42ae..8ced9a2698f3b831b18727e4951f9315a37fd703 100644 (file)
@@ -461,7 +461,7 @@ PHP_FUNCTION(bcpowmod)
        long scale = BCG(bc_precision);
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|l", &left, &left_len, &right, &right_len, &modulous, &modulous_len, &scale) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        bc_init_num(&first TSRMLS_CC);
index 38b17229f0c8365e3104d8a5cf2ebf3759d139aa..00981d1f1eb86ac9358bb6fbd24314e1f3dd015a 100644 (file)
@@ -1177,7 +1177,6 @@ PHP_FUNCTION(dba_handlers)
        zend_bool full_info = 0;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &full_info) == FAILURE) {
-               ZEND_WRONG_PARAM_COUNT();
                RETURN_FALSE;
        }
 
index e175f8b79afaf9cc5340d07e798c5442785f91f7..23302fdc9a75334e3a54b0ada67180377e6280ee 100644 (file)
@@ -111,7 +111,7 @@ PHP_FUNCTION(mhash_get_block_size)
        long hash;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &hash) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        RETURN_LONG(mhash_get_block_size(hash));
@@ -127,7 +127,7 @@ PHP_FUNCTION(mhash_get_hash_name)
        long hash;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &hash) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        name = mhash_get_hash_name(hash);
@@ -153,7 +153,7 @@ PHP_FUNCTION(mhash)
        char *data, *key=NULL;
        
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls|s", &hash, &data, &data_len, &key, &key_len) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
        
        bsize = mhash_get_block_size(hash);
@@ -202,7 +202,7 @@ PHP_FUNCTION(mhash_keygen_s2k)
        int password_len, salt_len;
        
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lssl", &hash, &password, &password_len, &in_salt, &salt_len, &bytes) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
        if (bytes <= 0){
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "the byte parameter must be greater than 0");
index 068b5ddb3afc696017f659a528a516dc1445b0af..b6754d5df69b1cf470750f364570f8849f6afcf8 100644 (file)
@@ -1528,7 +1528,7 @@ PHP_FUNCTION(session_regenerate_id)
        zend_bool del_ses = 0;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &del_ses) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        if (SG(headers_sent)) {
index d7c94187d13ca02a1a95426248995366f4d370de..07f6ff45f6c187a43f2813c3ffa5f3a36ad17dbe 100644 (file)
@@ -121,7 +121,7 @@ PHP_FUNCTION(shmop_open)
        int flags_len;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lsll", &key, &flags, &flags_len, &mode, &size) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        if (flags_len != 1) {
@@ -198,7 +198,7 @@ PHP_FUNCTION(shmop_read)
        char *return_string;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", &shmid, &start, &count) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        shmop = zend_list_find(shmid, &type);
@@ -238,7 +238,7 @@ PHP_FUNCTION(shmop_close)
        int type;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &shmid) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        shmop = zend_list_find(shmid, &type);
@@ -261,7 +261,7 @@ PHP_FUNCTION(shmop_size)
        int type;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &shmid) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        shmop = zend_list_find(shmid, &type);
@@ -287,7 +287,7 @@ PHP_FUNCTION(shmop_write)
        int data_len;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lsl", &shmid, &data, &data_len, &offset) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        shmop = zend_list_find(shmid, &type);
@@ -323,7 +323,7 @@ PHP_FUNCTION(shmop_delete)
        int type;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &shmid) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        shmop = zend_list_find(shmid, &type);
index 1b31e9bf82865887abd586e67a8aa7b86d2743c6..6f115c5e6e909333b31854e1ffaf96c4c8435102 100644 (file)
@@ -4725,7 +4725,7 @@ PHP_FUNCTION(time_nanosleep)
        struct timespec php_req, php_rem;
        
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &tv_sec, &tv_nsec)) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        php_req.tv_sec = (time_t) tv_sec;
@@ -4754,7 +4754,7 @@ PHP_FUNCTION(time_sleep_until)
        struct timespec php_req, php_rem;
        
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &d_ts)) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        if (gettimeofday((struct timeval *) &tm, NULL) != 0) {
index 6668eeda6838f880d27e95cca65e5f6b642fe3d6..32265f25561b032e485611853743f692f6374122 100644 (file)
@@ -1003,7 +1003,7 @@ static PHP_FUNCTION(ob_tidyhandler)
        TidyDoc doc;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &input, &input_len, &mode) == FAILURE) {
-               WRONG_PARAM_COUNT;
+               return;
        }
 
        doc = tidyCreate();
index ddb35df8e00bcd91ec660bc2a0cc3293d55710d6..060a976a37361d87b38140c2e12a062d90dd6149 100644 (file)
@@ -1345,7 +1345,6 @@ PHP_FUNCTION(xmlwriter_open_uri)
 #endif
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &source, &source_len) == FAILURE) {
-               WRONG_PARAM_COUNT;
                return;
        }