]> granicus.if.org Git - php/commitdiff
- Added arginfo
authorFelipe Pena <felipe@php.net>
Tue, 1 Jul 2008 15:45:54 +0000 (15:45 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 1 Jul 2008 15:45:54 +0000 (15:45 +0000)
ext/sysvshm/sysvshm.c

index 1db1c096a509c27e80a8bb56c982d8186db07c95..ebe364080d01630329246f9bd5cc11adfad7f1c9 100644 (file)
 #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}      
 };
 /* }}} */