|
|
|
@ -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); |
|
|
|
|