diff options
author | Derick Rethans <derick@php.net> | 2003-11-29 15:30:50 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2003-11-29 15:30:50 +0000 |
commit | 350d755e33e836769d9447231206bdaa9110e072 (patch) | |
tree | e1382c1a5ab0c29832813dc62d3f5ce1092a3aa9 /README.input_filter | |
parent | 750b0338bf1a2ae6d2fe48396801ad13a29255a2 (diff) | |
download | php-git-350d755e33e836769d9447231206bdaa9110e072.tar.gz |
- Update NEWS and README for input_filters
Diffstat (limited to 'README.input_filter')
-rw-r--r-- | README.input_filter | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/README.input_filter b/README.input_filter index 8064655b52..69a69335f5 100644 --- a/README.input_filter +++ b/README.input_filter @@ -89,6 +89,10 @@ PHP_MINFO_FUNCTION(my_input_filter) php_info_print_table_end(); } +/* The filter handler. If you return 1 from it, then PHP also registers the + * (modified) variable. Returning 0 prevents PHP from registering the variable; + * you can use this if your filter already registers the variable under a + * different name, or if you just don't want the variable registered at all. */ unsigned int my_sapi_input_filter(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len) { zval new_var; @@ -138,7 +142,7 @@ unsigned int my_sapi_input_filter(int arg, char *var, char **val, unsigned int php_strip_tags(*val, val_len, NULL, NULL, 0); *new_val_len = strlen(*val); - return 1; + return 1; } PHP_FUNCTION(my_get_raw) |