diff options
author | Felipe Pena <felipe@php.net> | 2008-07-03 01:55:48 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-07-03 01:55:48 +0000 |
commit | bedd3238786e225e2b46f9763f9704dc3c35490f (patch) | |
tree | f783502c0307c9c5cc8f37b6aea284467684d419 /ext/shmop | |
parent | 8d5ba06e873fff8e905864f52ae75d9a1cfc4320 (diff) | |
download | php-git-bedd3238786e225e2b46f9763f9704dc3c35490f.tar.gz |
- Added arginfo (functions)
Diffstat (limited to 'ext/shmop')
-rw-r--r-- | ext/shmop/shmop.c | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c index 24ddaccf5e..abdcf3547b 100644 --- a/ext/shmop/shmop.c +++ b/ext/shmop/shmop.c @@ -45,15 +45,54 @@ php_shmop_globals shmop_globals; int shm_type; +/* {{{ arginfo */ +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_open, 0, 0, 4) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, mode) + ZEND_ARG_INFO(0, size) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_read, 0, 0, 3) + ZEND_ARG_INFO(0, shmid) + ZEND_ARG_INFO(0, start) + ZEND_ARG_INFO(0, count) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_close, 0, 0, 1) + ZEND_ARG_INFO(0, shmid) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_size, 0, 0, 1) + ZEND_ARG_INFO(0, shmid) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_write, 0, 0, 3) + ZEND_ARG_INFO(0, shmid) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_delete, 0, 0, 1) + ZEND_ARG_INFO(0, shmid) +ZEND_END_ARG_INFO() +/* }}} */ + /* {{{ shmop_functions[] */ const zend_function_entry shmop_functions[] = { - PHP_FE(shmop_open, NULL) - PHP_FE(shmop_read, NULL) - PHP_FE(shmop_close, NULL) - PHP_FE(shmop_size, NULL) - PHP_FE(shmop_write, NULL) - PHP_FE(shmop_delete, NULL) + PHP_FE(shmop_open, arginfo_shmop_open) + PHP_FE(shmop_read, arginfo_shmop_read) + PHP_FE(shmop_close, arginfo_shmop_close) + PHP_FE(shmop_size, arginfo_shmop_size) + PHP_FE(shmop_write, arginfo_shmop_write) + PHP_FE(shmop_delete, arginfo_shmop_delete) {NULL, NULL, NULL} /* Must be the last line in shmop_functions[] */ }; /* }}} */ |