summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2006-11-03 14:46:48 +0000
committerHannes Magnusson <bjori@php.net>2006-11-03 14:46:48 +0000
commit050f94f746bd834cbefa9ffc4a1eb2ef8c41f480 (patch)
tree8f5824ad6d76371ef151982b061425dc4a41b286 /ext
parent11c47dc5107001d8805ee2822454c36b5d6d56d3 (diff)
downloadphp-git-050f94f746bd834cbefa9ffc4a1eb2ef8c41f480.tar.gz
MFH: Fix double "wron param count" messages
Diffstat (limited to 'ext')
-rw-r--r--ext/bcmath/bcmath.c2
-rw-r--r--ext/dba/dba.c1
-rw-r--r--ext/mhash/mhash.c8
-rw-r--r--ext/session/session.c2
-rw-r--r--ext/shmop/shmop.c12
-rw-r--r--ext/standard/basic_functions.c4
-rw-r--r--ext/tidy/tidy.c2
-rw-r--r--ext/xmlwriter/php_xmlwriter.c1
8 files changed, 15 insertions, 17 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 05bfb06642..8ced9a2698 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -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);
diff --git a/ext/dba/dba.c b/ext/dba/dba.c
index 38b17229f0..00981d1f1e 100644
--- a/ext/dba/dba.c
+++ b/ext/dba/dba.c
@@ -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;
}
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c
index e175f8b79a..23302fdc9a 100644
--- a/ext/mhash/mhash.c
+++ b/ext/mhash/mhash.c
@@ -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");
diff --git a/ext/session/session.c b/ext/session/session.c
index 068b5ddb3a..b6754d5df6 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -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)) {
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c
index d7c94187d1..07f6ff45f6 100644
--- a/ext/shmop/shmop.c
+++ b/ext/shmop/shmop.c
@@ -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);
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 1b31e9bf82..6f115c5e6e 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -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) {
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index 6668eeda68..32265f2556 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -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();
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index ddb35df8e0..060a976a37 100644
--- a/ext/xmlwriter/php_xmlwriter.c
+++ b/ext/xmlwriter/php_xmlwriter.c
@@ -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;
}