From 44689fbb363243723a78a1cbf98fc69c2b5fa6de Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 1 Jul 2008 15:45:54 +0000 Subject: - Added arginfo --- ext/sysvshm/sysvshm.c | 50 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 6 deletions(-) (limited to 'ext/sysvshm') 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} }; /* }}} */ -- cgit v1.2.1