felipe          Tue Jul  1 15:50:09 2008 UTC

  Modified files:              
    /php-src/ext/sysvshm        sysvshm.c 
  Log:
  - MFB: Added arginfo
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sysvshm/sysvshm.c?r1=1.79&r2=1.80&diff_format=u
Index: php-src/ext/sysvshm/sysvshm.c
diff -u php-src/ext/sysvshm/sysvshm.c:1.79 php-src/ext/sysvshm/sysvshm.c:1.80
--- php-src/ext/sysvshm/sysvshm.c:1.79  Mon Dec 31 07:12:17 2007
+++ php-src/ext/sysvshm/sysvshm.c       Tue Jul  1 15:50:09 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: sysvshm.c,v 1.79 2007/12/31 07:12:17 sebastian Exp $ */
+/* $Id: sysvshm.c,v 1.80 2008/07/01 15:50:09 felipe Exp $ */
 
 /* This has been built and tested on Linux 2.2.14 
  *
@@ -39,16 +39,60 @@
 #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_has_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_has_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_has_var,     arginfo_shm_has_var)
+       PHP_FE(shm_get_var,             arginfo_shm_get_var)
+       PHP_FE(shm_remove_var,  arginfo_shm_remove_var)
        {NULL, NULL, NULL}      
 };
 /* }}} */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to