diff options
author | Hannes Magnusson <bjori@php.net> | 2006-11-03 14:46:48 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2006-11-03 14:46:48 +0000 |
commit | 050f94f746bd834cbefa9ffc4a1eb2ef8c41f480 (patch) | |
tree | 8f5824ad6d76371ef151982b061425dc4a41b286 /ext/shmop | |
parent | 11c47dc5107001d8805ee2822454c36b5d6d56d3 (diff) | |
download | php-git-050f94f746bd834cbefa9ffc4a1eb2ef8c41f480.tar.gz |
MFH: Fix double "wron param count" messages
Diffstat (limited to 'ext/shmop')
-rw-r--r-- | ext/shmop/shmop.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); |