diff options
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); |
