felipe Tue Jun 24 12:10:35 2008 UTC
Modified files:
/php-src/ext/filter filter.c
Log:
MFB: Added arginfo
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/filter.c?r1=1.94&r2=1.95&diff_format=u
Index: php-src/ext/filter/filter.c
diff -u php-src/ext/filter/filter.c:1.94 php-src/ext/filter/filter.c:1.95
--- php-src/ext/filter/filter.c:1.94 Tue Mar 4 23:39:15 2008
+++ php-src/ext/filter/filter.c Tue Jun 24 12:10:35 2008
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filter.c,v 1.94 2008/03/04 23:39:15 felipe Exp $ */
+/* $Id: filter.c,v 1.95 2008/06/24 12:10:35 felipe Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -77,16 +77,60 @@
static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned
int val_len, unsigned int *new_val_len TSRMLS_DC);
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_input, 0, 0, 2)
+ ZEND_ARG_INFO(0, type)
+ ZEND_ARG_INFO(0, variable_name)
+ ZEND_ARG_INFO(0, filter)
+ ZEND_ARG_INFO(0, options)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_var, 0, 0, 1)
+ ZEND_ARG_INFO(0, variable)
+ ZEND_ARG_INFO(0, filter)
+ ZEND_ARG_INFO(0, options)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_input_array, 0, 0, 1)
+ ZEND_ARG_INFO(0, type)
+ ZEND_ARG_INFO(0, definition)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_var_array, 0, 0, 1)
+ ZEND_ARG_INFO(0, data)
+ ZEND_ARG_INFO(0, definition)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_filter_list, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_has_var, 0, 0, 2)
+ ZEND_ARG_INFO(0, type)
+ ZEND_ARG_INFO(0, variable_name)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_id, 0, 0, 1)
+ ZEND_ARG_INFO(0, filtername)
+ZEND_END_ARG_INFO()
+/* }}} */
+
/* {{{ filter_functions[]
*/
static const zend_function_entry filter_functions[] = {
- PHP_FE(filter_input, NULL)
- PHP_FE(filter_var, NULL)
- PHP_FE(filter_input_array, NULL)
- PHP_FE(filter_var_array, NULL)
- PHP_FE(filter_list, NULL)
- PHP_FE(filter_has_var, NULL)
- PHP_FE(filter_id, NULL)
+ PHP_FE(filter_input, arginfo_filter_input)
+ PHP_FE(filter_var, arginfo_filter_var)
+ PHP_FE(filter_input_array, arginfo_filter_input_array)
+ PHP_FE(filter_var_array, arginfo_filter_var_array)
+ PHP_FE(filter_list, arginfo_filter_list)
+ PHP_FE(filter_has_var, arginfo_filter_has_var)
+ PHP_FE(filter_id, arginfo_filter_id)
{NULL, NULL, NULL}
};
/* }}} */
@@ -275,7 +319,7 @@
{
php_info_print_table_start();
php_info_print_table_row( 2, "Input Validation and Filtering",
"enabled" );
- php_info_print_table_row( 2, "Revision", "$Revision: 1.94 $");
+ php_info_print_table_row( 2, "Revision", "$Revision: 1.95 $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php