diff options
author | Felipe Pena <felipe@php.net> | 2008-07-01 15:45:54 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-07-01 15:45:54 +0000 |
commit | 44689fbb363243723a78a1cbf98fc69c2b5fa6de (patch) | |
tree | 42d395c6785c31154085e8baf4c15d753e80f029 /ext/sysvshm | |
parent | f6c971b5f42276ec231473c1a61315b750d53777 (diff) | |
download | php-git-44689fbb363243723a78a1cbf98fc69c2b5fa6de.tar.gz |
- Added arginfo
Diffstat (limited to 'ext/sysvshm')
-rw-r--r-- | ext/sysvshm/sysvshm.c | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c index 1db1c096a5..ebe364080d 100644 --- a/ext/sysvshm/sysvshm.c +++ b/ext/sysvshm/sysvshm.c @@ -39,15 +39,53 @@ #include "ext/standard/php_smart_str.h" #include "php_ini.h" +/* {{{ arginfo */ +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shm_attach, 0, 0, 1) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, memsize) + ZEND_ARG_INFO(0, perm) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shm_detach, 0, 0, 1) + ZEND_ARG_INFO(0, shm_identifier) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shm_remove, 0, 0, 1) + ZEND_ARG_INFO(0, shm_identifier) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shm_put_var, 0, 0, 3) + ZEND_ARG_INFO(0, shm_identifier) + ZEND_ARG_INFO(0, variable_key) + ZEND_ARG_INFO(0, variable) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shm_get_var, 0, 0, 2) + ZEND_ARG_INFO(0, id) + ZEND_ARG_INFO(0, variable_key) +ZEND_END_ARG_INFO() + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_shm_remove_var, 0, 0, 2) + ZEND_ARG_INFO(0, id) + ZEND_ARG_INFO(0, variable_key) +ZEND_END_ARG_INFO() +/* }}} */ + /* {{{ sysvshm_functions[] */ const zend_function_entry sysvshm_functions[] = { - PHP_FE(shm_attach, NULL) - PHP_FE(shm_remove, NULL) - PHP_FE(shm_detach, NULL) - PHP_FE(shm_put_var, NULL) - PHP_FE(shm_get_var, NULL) - PHP_FE(shm_remove_var, NULL) + PHP_FE(shm_attach, arginfo_shm_attach) + PHP_FE(shm_remove, arginfo_shm_detach) + PHP_FE(shm_detach, arginfo_shm_remove) + PHP_FE(shm_put_var, arginfo_shm_put_var) + PHP_FE(shm_get_var, arginfo_shm_get_var) + PHP_FE(shm_remove_var, arginfo_shm_remove_var) {NULL, NULL, NULL} }; /* }}} */ |